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 configs #4

Open chris522229197 opened 1 year ago

chris522229197 commented 1 year ago

Thanks for the great work! I am interested in reproducing some experimental results.

It seems like the configs directory is missing, so config files such as configs/trainers/CoCoOpcf/vit_b16_c4_ep10_batch1_ctxv1.yaml cannot be found.

It would be appreciated if all the config files for the experiments are uploaded to this repo.

jkooy commented 1 year ago

Hi, many thanks for your interests. They can be found in the repo here configs/trainers/CoCoOp/vit_b16_c4_ep10_batch1_ctxv1.yaml

chris522229197 commented 1 year ago

Just making sure, does this mean that the CPL training configuration files are the same as the CoCoOp training configuration files?

jkooy commented 1 year ago

Yes. But CoCoop only has classification. Also specify COCOOPCF for CPL. Batch size may be adjusted in some experiments. we tested smaller ones on some machines for memory issues, this shouldn't affect the results.

alice-cool commented 1 year ago

Just making sure, does this mean that the CPL training configuration files are the same as the CoCoOp training configuration files?

Do you run this code successfully?