Command Palette
Search for a command to run...
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale

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 applied directly to sequences of image patches can perform very well on image classification tasks. When pre-trained on large amounts of data and transferred to multiple mid-sized or small image recognition benchmarks (ImageNet, CIFAR-100, VTAB, etc.), Vision Transformer (ViT) attains excellent results compared to state-of-the-art convolutional networks while requiring substantially fewer computational resources to train.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| domain-generalization-on-vizwiz | ViT-8/B-224 | Accuracy - Clean Images: 450 |
| domain-generalization-on-vizwiz | ViT-16/L-224 | Accuracy - All Images: 49 |
| fine-grained-image-classification-on-oxford-2 | ViT-B/16 | Top-1 Error Rate: 6.2% |
| image-classification-on-cifar-10 | ViT-H/14 | Percentage correct: 99.5 |
| image-classification-on-cifar-10 | ViT-L/16 | Percentage correct: 99.42 |
| image-classification-on-flowers-102 | - | Accuracy: 99.68 |
| image-classification-on-imagenet | ViT-L/16 | Top 1 Accuracy: 87.76% |
| image-classification-on-imagenet | ViT-Large | Top 1 Accuracy: 24% |
| image-classification-on-imagenet | - | Top 5 Accuracy: 23.72 |
| image-classification-on-imagenet | ViT-H/14 | Top 1 Accuracy: 88.55% |
| image-classification-on-objectnet | ViT-H/14 | Top-5 Accuracy: 82.1 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.