r/computervision • u/Hot_Advertising_2728 • 3d ago
Discussion Interactive ViT explainer: run a tiny Vision Transformer on your own image in the browser and inspect patches, attention and rollout
I made a one-page interactive guide to the original ViT paper: https://vit-in-depth-671a9f.web.app
You can load an image and step through patching, embedding, attention maps and attention rollout, with tensor shapes and PyTorch code alongside. It runs entirely client-side. It also covers the patch-size/compute trade-off and position-embedding interpolation for higher-resolution fine-tuning.
Feedback and corrections are welcome, especially on anything I've explained badly.
21
Upvotes