Code release for Zoo-Tuning: Adaptive Transfer from A Zoo of Models (ICML2021)
For convenience, we also provide the pretrained models downloaded from these pages. Download
- Python 3.8
- PyTorch 1.8.0
- tqdm
- einops
- requests
- Download and prepare the pretrained models in
pretrained_models/. - Download the DATASET you need or prepare your own DATASET. Then change the dataset paths of
get_data_loader()inmain.pyto the directory of the DATASET. - We provide the training script,
train.sh. Complete the configuration of experiments, thenbash train.shfor training and testing.
If you find this code or our paper useful, please consider citing:
@inproceedings{shu2021zoo,
title={Zoo-Tuning: Adaptive Transfer from a Zoo of Models},
author={Shu, Yang and Kou, Zhi and Cao, Zhangjie and Wang, Jianmin and Long, Mingsheng},
booktitle={International Conference on Machine Learning},
pages={9626--9637},
year={2021},
organization={PMLR}
}
If you have any problems about our code, feel free to contact