mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #465] The provided ImageNet label list has missing/duplicate labels. #394
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#394
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 @gstoica27 on GitHub (Oct 16, 2024).
Original GitHub issue: https://github.com/openai/CLIP/issues/465
Hello!
Apologies if this has already been addressed somewhere else, but I noticed that the ImageNet labels in the "Prompt Engineering for ImageNet" notebook: https://github.com/openai/CLIP/blob/main/notebooks/Prompt_Engineering_for_ImageNet.ipynb, contained two duplicates.
Specifically, these are "missile" and "sunglasses" -- both of which appear 2 times in the provided label list. I've gone through and fixed the issues on my end by referencing Anish Athalye's imagenet-simple-labels: one "missile" label should be "projectile" and one "sunglasses" label should be "sunglass".
What I believe is the "correct" label list is here:
I was able to match your reported ViT-B/32 top-1 performance on ImageNet from the paper (63.2) using the "wrong" label set provided by this repo. However, fixing the missing labels yields a better top-1 of 63.47 (so +.27%). I imagine the numbers of the other models may change too.
Best,
George