Skip to content

decemberzhou/TF_TAS

Repository files navigation

Training-free Transformer Architecture Search

This project is used to update news related to our paper Training-free Transformer Architecture Search (CVPR 2022).

Getting Started

Prerequisites

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

Data preparation

The layout of Imagenet data:

/path/to/imagenet/
  train/
    class1/
      img1.jpeg
    class2/
      img2.jpeg
  val/
    class1/
      img1.jpeg
    class2/
      img2.jpeg

Searching

bash search_autoformer.sh

Retraining

**Note that the subnet is specified in train_searched_result.sh with "--cfg" **

bash train_searched_result.sh

Citation

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}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published