
adabins_efnet_b5
Depth estimation115 ops85.8K params
Monocular depth network that predicts depth bins adapted to each image with a small transformer.
Depth estimation · 115 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.ri_vision_a_adabins:build_adabins: build({}) AdaBins estimates a dense depth map from a single RGB image. It divides the depth range into bins whose centers are estimated separately for each image, so the bins concentrate where that scene's depths fall. The paper's network has two parts: an encoder-decoder built on an EfficientNet B5 encoder with a standard upsampling decoder, and the AdaBins block that estimates the bin widths.
Inside that block a small transformer encoder, which the authors call mini-ViT, reads patch embeddings of the decoded features and outputs a vector of bin widths for the image along with a set of attention maps. A softmax then gives each pixel a score per bin, and the final depth is the linear combination of the bin centers weighted by those scores. Because the output blends the centers and is not the center of the single most likely bin, the depth maps are smooth and avoid discretization artifacts.
The attention comes after the decoder and not at the bottleneck, because the authors found better results when attention is applied to the spatially higher resolution tensors. The paper reports improvements across all metrics for supervised single image depth estimation on NYU and KITTI. The paper's network predicts depth at half the input resolution and bilinearly upsamples the result to full size.
Key idea. AdaBins adds a transformer-based block that divides the depth range into bins with per-image adaptive centers and predicts depth as a linear combination of those centers.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.