KaiyangZhou / CoOp

Prompt Learning for Vision-Language Models (IJCV'22, CVPR'22)
MIT License
1.8k stars 202 forks source link

there is an error when i apply it on #41

Open Zhangwenyao1 opened 2 years ago

Zhangwenyao1 commented 2 years ago

File "/home/zhangwenyao/pt/Dassl.pytorch/dassl/utils/tools.py", line 177, in check_availability "(do you mean [{}]?)".format(available, requested, psb_ans) ValueError: The requested one is expected to belong to ['Digit5', 'VisDA17', 'CIFARSTL', 'Office31', 'DomainNet', 'OfficeHome', 'miniDomainNet', 'PACS', 'VLCS', 'FMoW', 'IWildCam', 'Camelyon17', 'CIFAR10C', 'CIFAR100C', 'DigitsDG', 'DigitSingle', 'OfficeHomeDG', 'CIFAR10', 'CIFAR100', 'SVHN', 'STL10', 'OxfordPets', 'OxfordFlowers', 'FGVCAircraft', 'DescribableTextures', 'EuroSAT', 'StanfordCars', 'Food101', 'SUN397', 'Caltech101', 'UCF101', 'ImageNet', 'NewDataset', 'ImageNetSketch', 'ImageNetV2', 'ImageNetA', 'ImageNetR'], but got [Cifar100] (do you mean [CIFAR100]?)

KaiyangZhou commented 2 years ago

https://github.com/KaiyangZhou/CoOp/blob/main/datasets/oxford_pets.py#L11

chenrxi commented 1 year ago

Do you have the result on CIFAR100? @Zhangwenyao1

ROC-Star commented 1 month ago

作者您好,在我自己的方法中集成COCOOP,再推理的时候,模型的效果很差,特别是模型预测的类别几乎都是错误的。但是再推理的时候去掉COCOOP的时候,结果是正常的。请问这是为啥呢?感谢回答!