A Vision Transformer (ViT) applies a transformer-like architecture to images by converting an image into a sequence of embedded patches. Each fixed-size patch receives a linear embedding and a positional embedding before entering a transformer encoder. section 11.5
The image-classification pipeline consists of:
- Divide the image into fixed-size patches. section 11.5
- Linearly embed each patch and add positional information. section 11.5
- Feed the resulting vector sequence to a standard transformer encoder. section 11.5
- Pass the encoder output to an MLP head for classification. section 11.5
Image classification from patches
Given an image, represent every fixed-size region as a position-aware vector, process the ordered vectors with a transformer encoder, and use the resulting representation to classify the image. section 11.5






