Skip to content

utkarsh-iitbhu/Depth-Estimation-in-monocular-image

Repository files navigation

Vision Transformers for Dense Prediction

RESULTS:

image

image

Depth estimation in monocular images

This repository contains code and models for our paper:

Setup

  1. Download the model weights and place them in the weights folder:

Monodepth:

  1. Set up dependencies:

    pip install -r requirements.txt

    The code was tested with Python 3.7, PyTorch 1.8.0, OpenCV 4.5.1, and timm 0.4.5

Usage

  1. Place one or more input images in the folder input.

  2. Run a monocular depth estimation model:

    python run_monodepth.py
  3. The results are written to the folder output_monodepth.

Use the flag -t to switch between different models. Possible options are dpt_hybrid (default) and dpt_large.

Additional models:

Run with

python run_monodepth -t [dpt_hybrid_kitti|dpt_hybrid_nyu] 

Evaluation

Hints on how to evaluate monodepth models can be found here: https://github.com/intel-isl/DPT/blob/main/EVALUATION.md

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages