# monodepth2-cpp_1 **Repository Path**: maxibooksiyi/monodepth2-cpp_1 ## Basic Information - **Project Name**: monodepth2-cpp_1 - **Description**: Revised MonoDepth2 for LibTorch C++ inference. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-01 - **Last Updated**: 2023-12-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MonoDepth2-cpp ## Overview This is a revised version of [MonoDepth2](https://github.com/nianticlabs/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](https://drive.google.com/drive/folders/1WDOIVET_O6kHMPH8SugtIADEcqT9_TBf?usp=sharing), 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](monodepth2/README.md#training).