
depth_anything_v1_vitl
Depth estimation180 ops318.7K params
A dense prediction transformer (DPT) depth model that predicts a depth map 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 is a dense prediction transformer (DPT), the architecture introduced in the paper "Vision Transformers for Dense Prediction". The idea is to use a vision transformer in place of a convolutional network as the backbone for dense prediction tasks. The paper's argument is that convolutional backbones downsample as they go, so feature resolution and granularity are lost in the deeper stages and are hard to recover in the decoder. The transformer backbone in the paper instead processes representations at a constant and relatively high resolution and has a global receptive field at every stage.
The decoder is convolutional. Whatever the transformer backbone, it reassembles features at four different stages and four different resolutions. Fusion blocks then combine the feature maps from consecutive stages, upsampling by a factor of two in each fusion stage. For depth, the paper uses an output head that consists of 3 convolutional layers.
The paper's depth models were trained on a meta-dataset the authors call MIX 6, which contains about 1.4 million images. In zero-shot transfer to datasets not seen during training, the paper reports an average relative improvement over the MiDaS architecture of more than 23% for DPT-Hybrid and 28% for DPT-Large.
Key idea. The paper introduced dense vision transformers, which use vision transformers in place of convolutional networks as the backbone for dense prediction tasks.
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},
}