-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: bump open-clip-torch to v2.8.0 #883
Conversation
server/clip_server/model/model.py
Outdated
@@ -111,6 +120,8 @@ class CLIPVisionCfg: | |||
patch_size: int = 16 | |||
image_size: Union[Tuple[int, int], int] = 224 | |||
ls_init_value: Optional[float] = None # layer scale initial value | |||
patch_dropout: float = 0.0 # what fraction of patches to dropout during training (0 would mean disabled and no patches dropped) - 0.5 to 0.75 recommended in the paper for optimal results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need dropout during inference? It's not training process
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disabled by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we can remove this args if we don't need it
Codecov Report
@@ Coverage Diff @@
## main #883 +/- ##
===========================================
- Coverage 83.06% 71.78% -11.28%
===========================================
Files 22 22
Lines 1529 1531 +2
===========================================
- Hits 1270 1099 -171
- Misses 259 432 +173
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@@ -12,7 +12,7 @@ def test_server_download(tmpdir): | |||
download_model( | |||
url='https://docarray.jina.ai/_static/favicon.png', | |||
target_folder=tmpdir, | |||
md5sum='a084999188f4290e2654aec43207ff2e', | |||
md5sum='66ea4817d73514888dcf6c7d2b00016d', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any method we can auto-calculate the md5
in order not to block by this image chaning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def md5file(filename: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This PR adapts recent changes introduced in open-clip-torch v2.8+