A Vision Transformer (DeiT-Tiny: 12 layers, 3 heads, 5.7 M parameters) runs in your browser in plain JavaScript. The weights are 23 MB, downloaded once. Your photo is never uploaded.

The 224 × 224 centre crop the model sees, cut into 14 × 14 patches of 16 × 16 pixels.

Show
Layer12
Head
Querythe [CLS] token

Click a patch on the image to see what that patch attends to instead.

Top-5 predictions

Press the button to load the model.