
midas_dpt_swinv2_base_384
Depth estimation180 ops318.7K params
A dense prediction transformer for monocular depth: transformer encoder, convolutional decoder.
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 architecture for dense prediction tasks such as monocular depth estimation and semantic segmentation. Its encoder is a vision transformer (ViT) used as the backbone in place of a convolutional network. Because a transformer keeps the number of tokens constant, the encoder holds the spatial resolution of its initial embedding through all stages and has a global receptive field at every one of them.
A convolutional decoder assembles the tokens back into image-like feature maps. A three-stage Reassemble operation recovers these maps from four transformer stages at four different resolutions. Fusion blocks based on RefineNet then combine the maps from consecutive stages, upsampling by a factor of two in each fusion stage. For monocular depth, the output head projects to a non-negative scalar for every pixel that represents inverse depth.
The paper reports that in zero-shot transfer for monocular depth estimation, the average relative improvement over MiDaS, which it calls the best published architecture, was more than 23% for DPT-Hybrid and 28% for DPT-Large. It also notes that DPT reaches its full potential when trained on large-scale datasets. The variants defined in the paper are DPT-Base, DPT-Large and DPT-Hybrid, named after the ViT backbone each one uses.
Key idea. DPT showed that a vision transformer can replace the convolutional backbone in dense prediction, with tokens reassembled into image-like maps and fused by a convolutional decoder.
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},
}