All models

DepthFormer

A transformer encoder-decoder that estimates depth from a single image using per-image adaptive depth bins.

Depth estimation · 2,028 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

This diagram has 2,028 operations (22 KB) and is drawn when you ask.

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
75.5M
Operations
2,028
Framework
PyTorch
Recurrent
No
Published
ICIP 2022
Cited by
2 (as of 27 October 2026)
Authors
Ashutosh Agarwal, Chetan Arora
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
m16061
Graph hash
09b1fa7e2eef95b1bba14937a5f30f84c142443b4b3ca508163d0bd83ab38b0e
Skeleton hash
7352192e3f904dafdea26eb973c51b517462377f345a1e946776e19d1600cd79
Architecture hash
6a4fc5a4e22b4c6865a42f691981001f4f479e4b1a173c4d32c7d78bfc431f08
Diagram SHA-256
9867bdffcb86f0461c477965e0d444f316519e7be9496b6e9c4b6f0184525e74
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

What it is

Depthformer is a network for monocular depth estimation, meaning it predicts depth from a single image, and it uses multi-head self-attention to produce feature maps at several scales. The paper's argument is that in dense prediction each pixel needs a global view of the scene along with local information.

The encoder produces four feature maps with 64, 128, 320 and 512 channels. The encoder is initialized from pretrained MiT-B4 weights. The decoder upsamples step by step from the lowest resolution and fuses each result with the matching encoder features.

Depth is not regressed directly: a module the paper calls Transbins divides the depth range into bins whose centers are estimated for each image, and the depth at a pixel is a linear combination of those bin centers. The per-pixel probability distribution over the bins comes from a 1 × 1 convolution followed by softmax. On the NYUV2 and KITTI depth estimation benchmarks, the paper reports improving on the previous best root mean squared error by 3.3% on each.

Key idea. Depthformer pairs a multiscale self-attention encoder with an iteratively fusing decoder and a Transbins module that predicts per-image adaptive depth bins.

  • Depthformer
  • monocular depth estimation
  • depth estimation
  • single image depth
  • Transbins
  • adaptive bins
  • multiscale vision transformer
  • NYUV2
  • KITTI

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

Cite the paper

@misc{agarwal2022depthformermultiscalevision,
      title={Depthformer : Multiscale Vision Transformer For Monocular Depth Estimation With Local Global Information Fusion}, 
      author={Ashutosh Agarwal and Chetan Arora},
      year={2022},
      eprint={2207.04535},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2207.04535}, 
}