All models

depth_anything (depth estimation)

Monocular depth foundation model: a DINOv2 encoder and DPT decoder trained on 62M pseudo-labeled images.

Depth estimation · 417 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 (35 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

Parameters
24.8M
Operations
417
Framework
PyTorch
Recurrent
No
Name in source
depth_anything:depth-estimation
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
m4202
Graph hash
989a800876a23efd07ce177e2da8aa4d37775ff0a83b8cd1be2af5adc6ee2d46
Skeleton hash
efb41c13ac07bc8adf8835e65c27f98d22a8eeea2d88494d9699af5fa3f845d7
Architecture hash
4485462a6955796f412a8523eaefc0ba821a0c5b6e3e4a9e863d7e8058dbd866
Diagram SHA-256
bd0a746aa9a3fddf21b53f95587fe48673a69ac9322a6c9d6cbe9a786cbd8c44
TorchLens version
2.36.0
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.AutoModelForDepthEstimation.from_config()

What it is

Depth Anything is designed to be a foundation model for monocular depth estimation: it predicts depth from a single image. It pairs a pretrained DINOv2 image encoder, chosen to inherit its rich semantic priors, with a DPT decoder. The data story is the point: it is jointly trained on labeled images and about 62M unlabeled ones to enlarge the dataset. A teacher model trained on the unlabeled images produces pseudo-labels, and the student model learns from those pseudo-labels together with the labeled images. Strong perturbations are added to the unlabeled images to push the student to learn more visual knowledge from each one.

The Transformers example obtains a depth map with Pipeline or the AutoModel class. A second version, DepthAnythingV2, keeps the same architecture and works with all the same code, using synthetic data and a larger-capacity teacher for finer and more robust depth.

Key idea. A foundation model for monocular depth estimation, jointly trained on labeled images and about 62M unlabeled images.

  • depth anything
  • monocular depth estimation
  • depth map
  • dinov2
  • dpt
  • pseudo-labels
  • foundation model

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