This is a revised version of MonoDepth2 for C++ inference usage.
Python
- torch >= 1.4
- torchvision >= 0.5.0
- numpy
C++
- cmake >= 3.0
- libtorch
- opencv >= 3.0
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}
Please refer to the official README.