mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #353] Linear probe pre or post-projection? #305
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openai/CLIP#305
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Apr 20, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/353
Hi,
You mention in the paper that for linear probe evaluation
For CLIP-ViT models, we used the features before the linear projection to the embedding space, which corresponds to I_f in Figure 3.. Yet in the README it uses features frommodel.encode_imagewhich uses the visual module
github.com/openai/CLIP@d50d76daa6/clip/model.py (L340)Which is a VisionTransformer with the
self.projprojection layer to the common representation space used to match text and images, seegithub.com/openai/CLIP@d50d76daa6/clip/model.py (L221)and
github.com/openai/CLIP@d50d76daa6/clip/model.py (L368)Hence, it seems that you train LinearRegression post-projector (image features in the common embedding space). Could you clarify how you would recommend doing linear probe?