mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #354] Problems encountered when calling clip_model.train() #307
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#307
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 @JWargrave on GitHub (Apr 23, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/354
Hi, there.
I am new to
CLIPand I've found that it really improves my development productivity. Thanks for your great work.But I have some problems when using
CLIPto tackle a image retrieval task.For every epcoh, I train and validate the model respectively. The pseudocode of the training process is as follows:
At first, I forgot to call
clip_model.train()before the training loops.Then, I added
clip_model.train()before training loops. But the accuracy on the validation set drops noticeably (I have tried for many times and the performance gap always exist).That is to say, only adding or removing
model.train()changes the performance noticeably.The phenomenon above is very strange and I want to know the reason behind this and how to solve this problem.
Thanks a lot.