Skip to content

chinhsuanwu/monodepth2-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MonoDepth2-cpp

Overview

This is a revised version of MonoDepth2 for C++ inference usage.

Dependencies

Python

  • torch >= 1.4
  • torchvision >= 0.5.0
  • numpy

C++

  • cmake >= 3.0
  • libtorch
  • opencv >= 3.0

Run example

You can download the pre-trained models here, with the file structure shown below:

├── pth
│   ├── depth.jit.pth
│   ├── depth.pth
│   ├── encoder.jit.pth
│   ├── encoder.pth
│   └── ...

Afterwards,

mkdir build && cd build
cmake ..
make
./demo --pth={ABSOLUTE_PATH_TO_PTH_FOLDER}

Training

Please refer to the official README.

About

Revised MonoDepth2 for LibTorch C++ inference.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published