All models

adabins_efnet_b5

Single-image depth estimator that predicts per-image depth bins and blends their centers at each pixel.

Depth estimation · 115 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 (27 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

Family
adabins
Parameters
85.8K
Operations
115
Framework
PyTorch
Recurrent
No
Published
2021
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
m11722
Graph hash
2bced428aecebf6146bd58667f944f1888d8b3c132e7da26153b21e0e8c99d61
Skeleton hash
ec8cb16a9144d36a247d33574c0d423625273d0e784dfd4c7d31fea1a7ee555e
Architecture hash
43002fd34d43a54e8bd1ec93184e816f8fecca0c8acd84d590e11bab8a93272e
Diagram SHA-256
3d9abcdb537dc9d328da668737faba91e17dd533396b4c92cca42d7a49655c28
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.ri_vision_a_adabins:build_adabins_efnet_b5: build({})

What it is

This model is the indoor configuration: the paper trains it on NYU Depth v2, where depth maps have an upper bound of 10 meters.

About this model's family

AdaBins estimates a dense depth map from a single RGB image. Its central piece is a transformer-based block that divides the depth range into bins whose centers are estimated separately for each image. The depth at each pixel is then a linear combination of those bin centers.

The network has two parts: an encoder-decoder built on a pretrained EfficientNet B5 encoder with a standard upsampling decoder, followed by the AdaBins block. The first stage of that block, called mini-ViT, applies a Transformer encoder to patch embeddings of the decoded features. It produces a vector of bin widths, which sets how the depth interval is divided for that image, and a set of Range-Attention-Maps used to compute depth at each pixel. The attention sits after the decoder, not at the bottleneck, because the authors found better results when attention ran on the spatially higher-resolution tensors. Because the model does not output the center of the most likely bin, the paper says its depth maps are smooth and free of discretization artifacts.

The paper reports about 78M parameters for its main model, 5.8M of them in the AdaBins module. On the KITTI dataset it reports an RMS score about 13.5% better than the best earlier method it compares with.

Key idea. AdaBins adds a transformer-based block to an encoder-decoder network that divides the depth range into bins estimated per image and outputs depth as a linear combination of bin centers.

  • adabins
  • adaptive bins
  • depth estimation
  • monocular depth
  • single image depth
  • depth map
  • mini-vit
  • efficientnet b5

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