mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #58] Training CLIP-ViT #53
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#53
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 @Meteorix on GitHub (Mar 10, 2021).
Original GitHub issue: https://github.com/openai/CLIP/issues/58
@jongwook Thanks for this great work!
I am trying to train CLIP VIT B/32 from scratch, but cannot get a higher score on imagenet versus CLIP resnet-50. May I ask what initialization you use in training VIT?
In the paper:
We closely follow their implementation with only the minor modification of adding an additional layer normalization to the combined patch and position embeddings before the transformer and use a slightly different initialization scheme.@yuxulingche commented on GitHub (Mar 22, 2021):
Did you write the training code yourself?
@Meteorix commented on GitHub (Mar 24, 2021):
yes, it's not hard.
@jongwook commented on GitHub (Mar 24, 2021):
Are you comparing ViT-based and ResNet50-based models trained with the same dataset? Vision transformers tend to underperform ResNet-based models unless they're trained on a huge dataset, so I'd suspect that could have been the reason, rather than the initialization scheme.
@Meteorix commented on GitHub (Mar 24, 2021):
Thanks for your reply. We have trained on 100M text-image pairs. It turned out that ViTB32 model outperformed ResNet50 model on some of benchmarks.
@ValerioB88 commented on GitHub (Mar 25, 2021):
@Meteorix what dataset did you use?
@dragen1860 commented on GitHub (Mar 26, 2021):
Hi, Meteorix:
I am also working on this exciting project. I found you have implemented your own training code. That's pretty cool. May i ask for sharing your training code? it's would be good if you can kindly send the code to me. liangqu.long@gmail.com . Thank you very much.
@jongwook commented on GitHub (Apr 8, 2021):
@dragen1860 see #83 and also other third-party implementations by @KeremTurgutlu and @lucidrains.
@JACKHAHA363 commented on GitHub (Sep 8, 2021):
Hi, I am also running ViT-B/32 and with the open-clip code on CC3M. I also notice a discrepancy between ResNet and ViT. You can see my curves at https://github.com/mlfoundations/open_clip/issues/14. I am interested to know if you solve this performance gap @jongwook @Meteorix
@Shelton-Zhou commented on GitHub (Nov 3, 2021):
Hi, Meteorix:
I am also working on this exciting project. I found you have implemented your own training code. May i ask for sharing your training code? it's would be good if you can kindly send the code to me at x888632157@163.com . Thanks a lot!