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

CLIP-blind pairs #10

Open
mahtabbigverdi opened this issue Mar 6, 2024 · 3 comments
Open

CLIP-blind pairs #10

mahtabbigverdi opened this issue Mar 6, 2024 · 3 comments

Comments

@mahtabbigverdi
Copy link

Hi,
Great work, have you also released the code for finding clip blind pairs?

@clemneo
Copy link

clemneo commented Jun 20, 2024

+1, or even if the code isn't released it would be good if you could share some implementation details!

Are you taking the cosine similarity of the activations at the [CLS] token position at the last layer?

@tsb0601
Copy link
Owner

tsb0601 commented Jun 20, 2024

Hi, Sorry for the late reply. Of couse! We use the cosine similarity of the CLIPImage Encoder output: e.g. https://github.com/mlfoundations/open_clip/blob/58e4e39aaabc6040839b0d2a7e8bf20979e4558a/src/open_clip/model.py#L287

@namin-an
Copy link

How about DINO? @tsb0601 Thank you.

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

No branches or pull requests

4 participants