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 import #1

Closed SY-Xuan closed 1 year ago

SY-Xuan commented 2 years ago

It seems that you forgot to import this part: https://github.com/eric-ai-lab/CPL/blob/16274a860712e7674a8d8fea7f3046fd96a065e4/CPL/trainers/cocoopcf.py#L17

And you also missed the requirements.txt.

jkooy commented 2 years ago

Hi, I am sorry, what do you mean by forgot to import? For requriements, sorry for missing. It should be the same as the CoCoOp one.

SY-Xuan commented 2 years ago

from utils import solver, mupdate I cannot find anything of these two functions.

jkooy commented 2 years ago

It seems to be merged when I cleant it up. Let me add it. Thks for pointing it out!

SY-Xuan commented 1 year ago

Good work!!! I close this issue!