
midas_dpt_beit_base_384
Depth estimation180 ops318.7K params
Dense prediction transformer for depth: a transformer encoder whose tokens a convolutional decoder turns into a map.
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
DPT, the dense prediction transformer, is an encoder-decoder for per-pixel prediction whose encoder is built from a transformer instead of a convolutional network. The paper tests it on monocular depth estimation and semantic segmentation.
A Reassemble operation turns the transformer's output tokens back into image-like feature maps, taken at four different stages and four different resolutions. Features from deeper layers are assembled at lower resolution, and features from early layers at higher resolution. The decoder then fuses the maps from consecutive stages, upsampling by a factor of two at each fusion stage, and a task-specific output head produces the final prediction. The authors argue that this suits dense prediction because the transformer backbone has no explicit downsampling after the initial image embedding and has a global receptive field at every stage.
For depth, the paper trains on a meta-dataset it calls MIX 6, which contains about 1.4 million images. In zero-shot transfer to datasets not seen during training, it reports an average relative improvement over MiDaS of more than 23% for DPT-Hybrid and 28% for DPT-Large. It also notes that DPT-Large is about 3 times larger than MiDaS.
Key idea. DPT uses a vision transformer as the backbone for dense prediction, assembling its tokens into image-like representations at several resolutions that a convolutional decoder combines into full-resolution predictions.
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},
}