Please refer to the instructions detailed in INSTALL.md.
Please refer to the instructions detailed in DATASETS.md.
Please refer to the instructions detailed in base2new_train.sh and xd_train.sh.
Our code is based on PromptSRC, MaPLe, and Co-CoOp and CoOp. We thank the authors for releasing their code.
If you find our work useful in your research or if you use parts of this code, please consider citing our paper
@InProceedings{Hao_2025_CVPR,
author = {Hao, Fusheng and He, Fengxiang and Wu, Fuxiang and Wang, Tichao and Song, Chengqun and Cheng, Jun},
title = {Task-Aware Clustering for Prompting Vision-Language Models},
booktitle = {Proceedings of the Computer Vision and Pattern Recognition Conference (CVPR)},
month = {June},
year = {2025},
pages = {14745-14755}
}