BinsFormer: Revisiting Adaptive Bins for Monocular Depth Estimation

Zhenyu Li, Xuyang Wang, Xianming Liu, Junjun Jiang
4/3/2022
329 citations
cs.CV

Official code: zhyever/Monocular-Depth-Estimation-Toolbox (975 stars, Python, Apache-2.0, last commit 2025-07-21).

Abstract

Monocular depth estimation is a fundamental task in computer vision and has drawn increasing attention. Recently, some methods reformulate it as a classification-regression task to boost the model performance, where continuous depth is estimated via a linear combination of predicted probability distributions and discrete bins.

Show full abstract

In this paper, we present a novel framework called BinsFormer, tailored for the classification-regression-based depth estimation. It mainly focuses on two crucial components in the specific task: 1) proper generation of adaptive bins and 2) sufficient interaction between probability distribution and bins predictions. To specify, we employ the Transformer decoder to generate bins, novelly viewing it as a direct set-to-set prediction problem. We further integrate a multi-scale decoder structure to achieve a comprehensive understanding of spatial geometry information and estimate depth maps in a coarse-to-fine manner. Moreover, an extra scene understanding query is proposed to improve the estimation accuracy, which turns out that models can implicitly learn useful information from an auxiliary environment classification task. Extensive experiments on the KITTI, NYU, and SUN RGB-D datasets demonstrate that BinsFormer surpasses state-of-the-art monocular depth estimation methods with prominent margins. Code and pretrained models will be made publicly available at \url{https://github.com/zhyever/Monocular-Depth-Estimation-Toolbox}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Monocular Depth Estimation Toolbox based on MMSegmentation.

975110Python, ShellMar 11, 20221 years agoApache-2.0
benchmarkdepthdepth-estimationtoolbox

Similar Papers

Cite this paper

@article{li2022binsformer,
  title  = {BinsFormer: Revisiting Adaptive Bins for Monocular Depth Estimation},
  author = {Zhenyu Li and Xuyang Wang and Xianming Liu and Junjun Jiang},
  year   = {2022},
  eprint = {2204.00987},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.00987}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.00987.svg)](https://codeofpaper.com/paper/2204.00987)

Discussion