
vit (image classification)
Image classification298 ops85.8M params
A Vision Transformer from Masked Siamese Networks pre-training, here with an image classification head.
Image classification · 298 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.AutoModelForImageClassification.from_config()
ViTMSN is a Vision Transformer pre-trained with Masked Siamese Networks (MSN), a self-supervised framework for learning image representations. The approach matches the representation of an image view containing randomly masked patches to the representation of the original unmasked image. The paper describes this pre-training as particularly scalable for Vision Transformers, since only the unmasked patches are processed by the network.
The method is aimed at image classification with few labels, the low-shot and extreme low-shot regimes. On ImageNet-1K the paper reports 72.4% top-1 accuracy for its base MSN model with only 5,000 annotated images. With 1% of ImageNet-1K labels it reports 75.7% top-1 accuracy. The authors released pre-trained weights of the backbone only, from ImageNet-1k pre-training, and the classification model is initialized from that backbone.
Key idea. Masked Siamese Networks pre-train a Vision Transformer by matching the representation of a randomly masked image view to the representation of the original unmasked image.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.