mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #161] Fine-tuning with CLIP and accuracy decreases? #141
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#141
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 @oh-livia on GitHub (Oct 21, 2021).
Original GitHub issue: https://github.com/openai/CLIP/issues/161
Has anyone tried to use CLIP fine-tuning as part of a larger model? I am getting some strange issues with accuracy jumping up to around 20% and then... dropping. I cannot tell if this is just an issue with my model setup, or something I'm doing with the CLIP fine-tuning. The model uses the CLIP image embeddings for both images, concatenates them, then passes them through a few FC layers to get an output the same size as the CLIP text embedding. I use a CrossEntropy loss on the cosine measurements between the output and existing caption embeddings I have (and follow the advice from other posts about changing the weight types for CLIP finetuning).
I don't know how much detail is needed to showcase the issue I'm having, but I'm curious if anyone else has run into issues of accuracy decreasing when trying to fine-tune the CLIP embeddings
@dongyun-kim-arch commented on GitHub (Feb 20, 2022):
HI! I am also trying to do CLIP fine-tuning. I am wondering how you get the accuracy metrics since when I trained it, I could only see the loss, but it seems many people could also plot accuracy...
@Liaoqing-up commented on GitHub (Apr 17, 2022):
hello, i also want to train the CLIP. How you train it ?
@Viditagarwal7479 commented on GitHub (Feb 19, 2024):
@dongyun-kim-arch by evaluating it's zero-shot classification accuracy.
@Viditagarwal7479 commented on GitHub (Feb 19, 2024):
@oh-livia I am also facing similar issue, the accuracy keeps on dropping even after trying various learning rates and gradient accumulation steps. Did you find any solution for this?