All models

LocalBins

A single-image depth estimator that predicts a local distribution of depth bins at every pixel.

Depth estimation · 983 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

Loading diagram (34 KB)

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
73.6M
Operations
983
Framework
PyTorch
Recurrent
No
Published
Lecture Notes in Computer Science (arXiv 2022)
Cited by
126 (as of 28 October 2026)
Authors
Shariq Farooq Bhat, Ibraheem Alhashim, Peter Wonka
License
GPL-3.0
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
m17975
Graph hash
6d0fca3210ab5949e645f37ffe4e0b755943ca233166b0a0092fcdf1e8083b94
Skeleton hash
880d0f67a44ce3df6a37eae544f081edd0cfc8c062ac6b01a550876a7466c444
Architecture hash
f078177dd4e46e5851a13101de4212eb3da40eeb33295b4198cefe1eaeeae924
Diagram SHA-256
67075e9c3c723f0cab9e3336269fb9be4df86b90c9065befbe7aef9bac08a78e
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

LocalBins estimates depth from a single image. It builds on AdaBins, which estimates one global distribution of depth values for the whole input image. LocalBins instead predicts a depth distribution for the local neighborhood of every pixel. It also involves all layers of the decoder in that prediction, where AdaBins predicts distributions only towards the end of the decoder.

The network has two parts: an encoder-decoder, the same one AdaBins uses (EfficientNet-B5 with skip connections), and the LocalBins module. The module is made of three kinds of layers: bin embedding layers, a seed bin width estimator and bin splitters. It starts from a seed number of bins for every pixel at the bottleneck and doubles the number of bins at every decoder layer, going from coarse to fine. The final depth map comes from the same hybrid regression as in AdaBins.

Unlike AdaBins, the design does not use a transformer as a separate block and ties the depth prediction more closely to the decoder. The authors describe the module as lightweight, adding only about 1M parameters, and usable with any encoder-decoder network. The paper reports an improvement in all metrics on the NYU-Depth V2 dataset over the best earlier results at the time.

Key idea. LocalBins predicts depth distributions for the local neighborhood of every pixel, refining them through all decoder layers, instead of one global distribution per image.

  • LocalBins
  • local bins
  • monocular depth estimation
  • single image depth estimation
  • depth estimation
  • adaptive bins
  • depth distribution
  • histogram prediction
  • dense regression
  • NYU-Depth V2

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

Cite the paper

@misc{bhat2022localbinsimprovingdepthestimation,
      title={LocalBins: Improving Depth Estimation by Learning Local Distributions}, 
      author={Shariq Farooq Bhat and Ibraheem Alhashim and Peter Wonka},
      year={2022},
      eprint={2203.15132},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2203.15132}, 
}