
depth_anything_v1_vitl
Depth estimation180 ops318.7K params
MiDaS DPT_Next_ViT_L_384, a dense prediction transformer that estimates depth from a single image.
Depth estimation · 180 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
menagerie.classics.depth_anything_dpt:build_vitl: build({}) About this model's family
This model follows the dense prediction transformer (DPT) design, which uses a vision transformer in place of a convolutional network as the backbone for dense prediction tasks. The paper applies DPT to two such tasks: monocular depth estimation, which predicts depth from a single image, and semantic segmentation.
The image is first turned into tokens, and the transformer keeps the same number of tokens through all of its computations. Because every token can attend to every other token, each transformer stage has a global receptive field. A Reassemble operation then turns tokens from four stages into image-like feature maps at four resolutions. RefineNet-based fusion blocks combine these maps and upsample them by a factor of two at each stage. For depth, the output head ends in a layer that gives a non-negative scalar for every pixel, the inverse depth prediction.
On zero-shot transfer to datasets not seen during training, the paper reports an average relative improvement over MiDaS of more than 23% for DPT-Hybrid and 28% for DPT-Large. Its depth models were trained on a meta-dataset the authors call MIX 6, which contains about 1.4 million images. Training images were resized so that the longer side is 384 pixels and cropped to random squares of size 384.
Key idea. The paper built DPT, which reassembles vision transformer tokens into image-like features at several resolutions and fuses them with a convolutional decoder for dense prediction.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{ranftl2021visiontransformersdenseprediction,
title={Vision Transformers for Dense Prediction},
author={René Ranftl and Alexey Bochkovskiy and Vladlen Koltun},
year={2021},
eprint={2103.13413},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2103.13413},
}