Papers › BinsFormer: Revisiting Adaptive Bins for Monocular Depth Estimation

BinsFormer: Revisiting Adaptive Bins for Monocular Depth Estimation

3 Apr 2022arXiv:2204.00987archive 2025-07-28

Zhenyu Li, Xuyang Wang, Xianming Liu, Junjun Jiang

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. 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}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2204.00987")

Code

Syntology Ran 1 of 5 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran with no contract checked.

By repository: official repository: 5 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhyever/monocular-depth-estimation-toolbox officialmentioned in paperpytorchApache-2.0 report
RuijieZhu94/mmdepth mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

5 samples harvested; 1 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran
4unverified

Licence: 0 of the 5 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zhyever/monocular-depth-estimation-toolbox. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

remove_leading_slash zhyever/monocular-depth-estimation-toolbox/depth/datasets/nyu.py official repository ran fingerprinted Apache-2.0 (permissive) · faac9130cc118fec · report
add_prefix zhyever/monocular-depth-estimation-toolbox/depth/core/utils/misc.py official repository unverified Apache-2.0 (permissive) · 3fdd113170a0555f · report
calculate zhyever/monocular-depth-estimation-toolbox/depth/core/evaluation/metrics.py official repository unverified Apache-2.0 (permissive) · 0d757a05c5b90822 · report
eval_metrics zhyever/monocular-depth-estimation-toolbox/depth/core/evaluation/metrics.py official repository unverified Apache-2.0 (permissive) · 568cbdbe2a7718a3 · report
metrics zhyever/monocular-depth-estimation-toolbox/depth/core/evaluation/metrics.py official repository unverified Apache-2.0 (permissive) · 8b0bbdc40ef410ff · report

Tasks

DecoderDepth EstimationMonocular Depth EstimationScene Understandingregression

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Monocular Depth Estimation KITTI Eigen split BinsFormer Delta < 1.25 0.974 #26 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split BinsFormer Delta < 1.25^2 0.997 #26 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split BinsFormer Delta < 1.25^3 0.999 #26 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split BinsFormer RMSE 2.098 #26 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split BinsFormer RMSE log 0.079 #26 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split BinsFormer Sq Rel 0.151 #26 of 79 Archive leaderboard report
Monocular Depth Estimation KITTI Eigen split BinsFormer absolute relative error 0.052 #26 of 79 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 BinsFormer Delta < 1.25 0.925 #42 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 BinsFormer Delta < 1.25^2 0.989 #42 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 BinsFormer Delta < 1.25^3 0.997 #42 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 BinsFormer RMSE 0.330 #42 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 BinsFormer absolute relative error 0.094 #42 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 BinsFormer log 10 0.040 #42 of 85 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections