This project is used to update news related to our paper Training-free Transformer Architecture Search (CVPR 2022).
You will need Python > 3 and the packages specified in requirements.txt. We recommend setting up a virtual environment with pip and installing the packages there.
Install packages with:
$ pip install -r requirements.txt
The layout of Imagenet data:
/path/to/imagenet/
train/
class1/
img1.jpeg
class2/
img2.jpeg
val/
class1/
img1.jpeg
class2/
img2.jpeg
bash search_autoformer.sh
**Note that the subnet is specified in train_searched_result.sh with "--cfg" **
bash train_searched_result.sh
If you use our code for your paper, please cite:
@inproceedings{zhou2022training,
title={Training-free Transformer Architecture Search},
author={Zhou, Qinqin and Sheng, Kekai and Zheng, Xiawu and Li, Ke and Sun, Xing and Tian, Yonghong and Chen, Jie and Ji, Rongrong},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={10894--10903},
year={2022}
}