This is the official code for https://arxiv.org/pdf/2308.00727.
If you find this repo useful for your research, please consider citing this paper
@article{lu2023adaptive,
title={Adaptive Semantic Consistency for Cross-domain Few-shot Classification},
author={Lu, Hengchu and Shao, Yuanjie and Wang, Xiang and Gao, Changxin},
journal={arXiv preprint arXiv:2308.00727},
year={2023}
}
Please follow here to download dataset and pretrained model
- To run contrastive finetuning on
EuroSAT
data (default target domain), runpython Supcon_ASC.py
, with 5-way 5-shot as default setting
Our code is based on On the Importance of Distractors for Few-Shot Classification.