eric-ai-lab / CPL

Official implementation of our EMNLP 2022 paper "CPL: Counterfactual Prompt Learning for Vision and Language Models"
MIT License
32 stars 5 forks source link

Missing number of seen classes #6

Open bhargaviparanjape opened 1 year ago

bhargaviparanjape commented 1 year ago

Thanks for the great work! I am interested in reproducing some experimental results. When running CoCoOp/CPL for Oxford Pets dataset in the few-shot setting, I get an error in Line 184/186 in CPL/datasets/oxford_pets.py since the number of seen classes is currently not being passed as a 4th argument to the subsample_classes function. I wasn't able to also figure out how many classes were seen/unseen in the results reported in Table 1 in the paper. Where can I find this information?

jkooy commented 1 year ago

Hi, thanks for interests. Seen is passed as base. See here https://github.com/eric-ai-lab/CPL/tree/master/CPL/dataset_processing/classification