mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #211] Are linear probes for ResNet50 also before projection ? #184
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#184
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 @YannDubs on GitHub (Feb 5, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/211
If I understand correctly when performing linear probing you take the representations before the linear projection heads. In the code, this can be done very nicely thanks to this line:
github.com/openai/CLIP@3b473b0e68/clip/model.py (L233)It is less clean for ResNet architecture, which makes me wonder whether you do the same for ResNets?
Here's the code I'm currently using assuming that I have to remove the projection head for both ViT and ResNet:
Thanks for the easily usable code + pretrained weights ♡
@AverageName commented on GitHub (Feb 14, 2022):
I'm working on linear probe fine-tuning too, but I can't see where encoder.proj is being turned off in the official linear probe code, can you show me please?
@kinggongzilla commented on GitHub (Jun 6, 2022):
I have the same question, after reading the CLIP paper.
What exactly does "linear probing on ResNet" mean?