mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #272] About Zero-shot CLIP performance on CIFAR100 and ImageNet1K #236
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#236
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 @yaohui120 on GitHub (Jul 25, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/272
I can get almost same results provided in Zero-shot Prediction code in More Examples. But when I changed the code and used different backbone(RN50, ViT-B/16, ViT-B/32) to compute all images in test sets of CIFAR100 and ImageNet1K, the accuracies are always lower than result's provided in their paper about 3 or 4 percent. The environment I used to run the code includes torch1.8.1 and torchvision0.9.1. The code is listed below.
@yaohui120 commented on GitHub (Jul 25, 2022):
The solution is in https://github.com/openai/CLIP/issues/153. It's the order of classnames in prompt.