Giter Club home page Giter Club logo

depthformer's Introduction

DEPTHFORMER: MULTISCALE VISION TRANSFORMER FOR MONOCULAR DEPTH ESTIMATION WITH GLOBAL LOCAL INFORMATION FUSION

PWC PWC

This is the official PyTorch implementation for ICIP 2022 paper 'Depthformer : Multiscale Vision Transformer For Monocular Depth Estimation With Local Global Information Fusion'.

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

Pretrained Models

  • You can download the pretrained models "Depthformer_nyu.pt" and "Depthformer_kitti.pt" from here.

Datset Preparation

We follow the dataset preparation strategy of BTS.

Training

NYUv2:

python train.py args_train_nyu_eigen.txt

KITTI:

python train.py args_train_kitti_eigen.txt

Evaluation

NYUv2:

python evaluate.py args_test_nyu_eigen.txt

KITTI:

python evaluate.py args_test_kitti_eigen.txt

Citation

If you find our work useful in your research, please cite the following:

@INPROCEEDINGS{9897187,
  author={Agarwal, Ashutosh and Arora, Chetan},
  booktitle={2022 IEEE International Conference on Image Processing (ICIP)}, 
  title={Depthformer: Multiscale Vision Transformer for Monocular Depth Estimation with Global Local Information Fusion}, 
  year={2022},
  volume={},
  number={},
  pages={3873-3877},
  doi={10.1109/ICIP46576.2022.9897187}}

Contact

For questions about our paper or code, please contact (@ashutosh1807) or raise an issue on GitHub.

References:

The code is adapted from the following repositories:

[1] Adabins [2] Segformer

depthformer's People

Contributors

ashutosh1807 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.