DepthFormer: Exploiting Long-Range Correlation and Local Information for Accurate Monocular Depth Estimation

Zhenyu Li, Zehui Chen, Xianming Liu, Junjun Jiang
3/27/2022
cs.CV
transformer-attention

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

Abstract

This paper aims to address the problem of supervised monocular depth estimation. We start with a meticulous pilot study to demonstrate that the long-range correlation is essential for accurate depth estimation.

Show full abstract

Therefore, we propose to leverage the Transformer to model this global context with an effective attention mechanism. We also adopt an additional convolution branch to preserve the local information as the Transformer lacks the spatial inductive bias in modeling such contents. However, independent branches lead to a shortage of connections between features. To bridge this gap, we design a hierarchical aggregation and heterogeneous interaction module to enhance the Transformer features via element-wise interaction and model the affinity between the Transformer and the CNN features in a set-to-set translation manner. Due to the unbearable memory cost caused by global attention on high-resolution feature maps, we introduce the deformable scheme to reduce the complexity. Extensive experiments on the KITTI, NYU, and SUN RGB-D datasets demonstrate that our proposed model, termed DepthFormer, surpasses state-of-the-art monocular depth estimation methods with prominent margins. Notably, it achieves the most competitive result on the highly competitive KITTI depth estimation benchmark. Our codes and models are available at 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{li2022depthformer,
  title  = {DepthFormer: Exploiting Long-Range Correlation and Local Information for Accurate Monocular Depth Estimation},
  author = {Zhenyu Li and Zehui Chen and Xianming Liu and Junjun Jiang},
  year   = {2022},
  eprint = {2203.14211},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.14211}
}

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/2203.14211.svg)](https://codeofpaper.com/paper/2203.14211)

Discussion