
dinov2 (MMPretrain)
Image classification80 ops731.4K params
DINOv2, a vision foundation model that uses a ViT as a feature extractor, with an image classification output.
Image classification · 327 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()
This model is DINOv2 set up for image classification: it returns logits, and the predicted class is the index of the largest one.
About this model's family
DINOv2 is a vision foundation model that uses a Vision Transformer (ViT) as a feature extractor for multiple downstream tasks, such as image classification and depth estimation. It focuses on stabilizing and accelerating training, through techniques that include a faster memory-efficient attention, sequence packing, improved stochastic depth and model distillation.
The backbone's output tensor splits into two kinds of embedding. One is an embedding for the whole image, commonly referred to as a CLS token, which is useful for classification and retrieval. The other is a set of local embeddings, one for each 14x14 patch of the input image, which are useful for dense tasks such as semantic segmentation.
Key idea. DINOv2 is a vision foundation model whose ViT features serve multiple downstream tasks, with training stabilized and accelerated by techniques such as memory-efficient attention and model distillation.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.