A newer version of the Gradio SDK is available:
5.14.0
Alpha-CLIP evaluation
Zero-Shot Classification on ImageNet-S
1.prepare imagenet-s dataset, only validation
raw image is needed.
2.download imagenet_919.json we provide as data annotation (generated from imagenet-s annotation). The folder should be structured like
βββ imagenet_s_zs_test
β βββ data
β β βββ imagenet_919.json
β β βββ ImageNetS919
β β βββ validation
3.run test script.
cd eval/imagenet_s_zs_test
python imagenet_s_zs_test.py