junyongyou / Vision-Transformer

Vision Transformer using TensorFlow 2.0

Home Page:https://openreview.net/forum?id=YicbFdNTTy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vision Transformer

Abstract: While the Transformer architecture has become the de-facto standard for natural language processing tasks, its applications to computer vision remain limited. In vision, attention is either applied in conjunction with convolutional networks, or used to replace certain components of convolutional networks while keeping their overall structure in place. We show that this reliance on CNNs is not necessary and a pure transformer can perform very well on image classification tasks when applied directly to sequences of image patches. When pre-trained on large amounts of data and transferred to multiple recognition benchmarks (ImageNet, CIFAR-100, VTAB, etc), Vision Transformer attains excellent results compared to state-of-the-art convolutional networks while requiring substantially fewer computational resources to train.

Vision Transformer implemented using TF 2.0.

example usage can found in cifar.ipynb

PyTorch version here

Citations

@inproceedings{
    anonymous2021an,
    title={An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale},
    author={Anonymous},
    booktitle={Submitted to International Conference on Learning Representations},
    year={2021},
    url={https://openreview.net/forum?id=YicbFdNTTy},
    note={under review}
}

About

Vision Transformer using TensorFlow 2.0

https://openreview.net/forum?id=YicbFdNTTy

License:Apache License 2.0


Languages

Language:Python 80.1%Language:Jupyter Notebook 19.9%