Code for "Conditional Self-Supervised Learning for Few-Shot Classification" in IJCAI 2021.
If you use the code in this repo for your work, please cite the following bib entries:
@inproceedings{An2021CSS,
author = {Yuexuan An and
Hui Xue and
Xingyu Zhao and
Lu Zhang},
title = {Conditional Self-Supervised Learning for Few-Shot Classification},
booktitle = {Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, {IJCAI} 2021, Virtual Event / Montreal, Canada, 19-27 August 2021},
pages = {2140--2146},
year = {2021},
}
Python3
Pytorch
- Change directory to
./filelists/cifar
- Download CIFAR-FS
- run
bash ./cifar.sh
- Change directory to
./filelists/CUB
- run
bash ./download_CUB.sh
- Change directory to
./filelists/miniImagenet
- Download mini-ImageNet
- run
bash ./miniImagenet.sh
python run_css.py
Our project references the codes and datasets in the following repo and papers.
Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltechucsd birds-200-2011 dataset. 2011.
Luca Bertinetto, João F. Henriques, Philip H. S. Torr, Andrea Vedaldi. Meta-learning with differentiable closed-form solvers. ICLR 2019.
Oriol Vinyals, Charles Blundell, Tim Lillicrap, Koray Kavukcuoglu, Daan Wierstra. Matching Networks for One Shot Learning. NIPS 2016: 3630-3638.