This project is base on KaiyangZhou/CoOp. The relevant experimental code will be made public after the article is accepted.
This code is built on top of the awesome toolbox Dassl.pytorch so you need to install the dassl environment first. Simply follow the instructions described here to install dassl as well as PyTorch. After that, run pip install -r requirements.txt under CoOp/ to install a few more packages required by CLIP (this should be done when dassl is activated). Then, you are ready to go.
Follow DATASETS.md to install the datasets.
Click a paper below to see the detailed instructions on how to run the code to reproduce the results.