Skip to content
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

OpenCLIP models #35

Merged
merged 6 commits into from
Feb 28, 2024
Merged

OpenCLIP models #35

merged 6 commits into from
Feb 28, 2024

Conversation

Jim-Encord
Copy link
Contributor

Not the ideal method. I spent quite a while battling with the different ways of having multiple collate functions and whatnot. Actually it's possible that at the end of all, I didn't need different collate functions. Just transform functions and embedding functions.

Currently, it's a bit tragic as for OpenCLIP models, we only encode them one at a time. model.encode_image takes a singular image. With some time spent hacking around at the internals, the issue can be resolved.

clip_eval/models/CLIP_model.py Outdated Show resolved Hide resolved
clip_eval/models/CLIP_model.py Outdated Show resolved Hide resolved
@eloy-encord eloy-encord merged commit 50caf37 into main Feb 28, 2024
1 check passed
@eloy-encord eloy-encord deleted the jb/feat_openclip branch February 28, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants