All models

dinov2 (image classification)

DINOv2, a vision foundation model that uses a ViT as a feature extractor, with an image classification output.

Image classification · 327 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (32 KB)

Open in a new tab

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.

At a glance

Family
dinov2
Parameters
85.7M
Operations
327
Framework
PyTorch
Recurrent
No
Published
2023
Name in source
dinov2:image-classification
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m4314
Graph hash
4e4c1fac814e52980d750c2c7e41bb43507c1be220d66f8218f3eb03bf168f37
Skeleton hash
b34b07db90981d0e920b8794cdc855d19f2ad8a7aca42a7f5ae132b0c3ffd8f7
Architecture hash
788a1e846fbdc19566e3557bb845155986b3c024e82158b846c210397fe15171
Diagram SHA-256
98aa98cb308341c265aff162cffb26d9315d8df3699bbdbb3c42bd095ecd3413
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.AutoModelForImageClassification.from_config()

What it is

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.

  • dinov2
  • dino v2
  • vision foundation model
  • vit feature extractor
  • image embeddings
  • image classification
  • patch features

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.