Depthformer : Multiscale Vision Transformer For Monocular Depth Estimation With Local Global Information Fusion

Ashutosh Agarwal, Chetan Arora
7/10/2022
cs.CV

Official code: ashutosh1807/Depthformer (37 stars, last commit 2023-02-13).

Abstract

Attention-based models such as transformers have shown outstanding performance on dense prediction tasks, such as semantic segmentation, owing to their capability of capturing long-range dependency in an image. However, the benefit of transformers for monocular depth prediction has seldom been explored so far. This paper benchmarks various transformer-based models for the depth estimation task on an indoor NYUV2 dataset and an outdoor KITTI dataset. We propose a novel attention-based architecture, Depthformer for monocular depth estimation that uses multi-head self-attention to produce the multiscale feature maps, which are effectively combined by our proposed decoder network. We also propose a Transbins module that divides the depth range into bins whose center value is estimated adaptively per image. The final depth estimated is a linear combination of bin centers for each pixel. Transbins module takes advantage of the global receptive field using the transformer module in the encoding stage. Experimental results on NYUV2 and KITTI depth estimation benchmark demonstrate that our proposed method improves the state-of-the-art by 3.3%, and 3.3% respectively in terms of Root Mean Squared Error (RMSE). Code is available at https://github.com/ashutosh1807/Depthformer.git.

View on arXivView PDF

Code Implementations(1)

377PythonJul 10, 20223 years ago

Similar Papers

Cite this paper

@article{agarwal2022depthformer,
  title  = {Depthformer : Multiscale Vision Transformer For Monocular Depth Estimation With Local Global Information Fusion},
  author = {Ashutosh Agarwal and Chetan Arora},
  year   = {2022},
  eprint = {2207.04535},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.04535v2}
}

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

Discussion