mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #220] How can I get accuracy metrics when training? #192
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#192
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 @dongyun-kim-arch on GitHub (Feb 20, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/220
Hello!
Thank you for sharing this awesome model!
I am trying to fine-tune CLIP model to my own dataset. It seems many people talked about the accuracy when they evaluated their model performance, but I could only get loss to evaluate my model performance.
Is there any reference code I can refer to for getting accuracy?
Thanks!
@jongwook commented on GitHub (Apr 11, 2022):
"accuracy" during training probably meant the proportion of the training examples that had correctly predicted the contrastive label, e.g.:
@newbietuan commented on GitHub (Apr 18, 2022):
@jongwook hello! during fine-tune the model on my own dataset with the format of image-caption, if i should use 'image_acc = (image_logits.argmax(dim=-1) == contrastive_label).float()' directly?