Practical overview
When it fits
Use it when you want to run the released research implementation locally and have an environment aligned with its listed Python, PyTorch, Ubuntu and CUDA requirements.
Who it is for
- Computer-vision researchers exploring monocular depth estimation.
- Developers seeking depth maps as inputs to image-processing experiments.
Documented uses
- Estimate depth from a JPG or PNG image.
- Generate depth outputs for a folder of images with the documented KITTI demo.
- Use predicted depth maps in downstream computer-vision or image-processing experiments.
Requirements & limits
The code is in a public repository specifying the GPL-3.0 license.
- The README lists Python 3.7+, PyTorch 1.6.0+, Ubuntu 16.04 and CUDA 9.2, plus several additional packages.
- Pretrained weights are provided for KITTI and NYU Depth V2; the demo's pretrained argument must match the selected model.
- The README documents dense ground truth as necessary for KITTI training with gradient loss, but not for data-loss-only training.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Generate depth output for an image
Run the documented demo on one JPG or PNG using a pretrained KITTI or NYU model.
Before you start
- Python 3.7 or later and PyTorch 1.6.0 or later.
- Ubuntu 16.04 and CUDA 9.2 are listed requirements; cuDNN is listed if CUDA is available.
- Install the additional packages named in the README: geffnet, path, IPython, blessings and progressbar.
- Download a pretrained model and place it in the ./pretrained/ directory.
- A JPG or PNG image and the demo.py script.
Steps
Download a pretrained KITTI or NYU model and put it in ./pretrained/.
Run demo.py with --model_dir pointing to that model, --img_dir pointing to the image, and --pretrained set to KITTI or NYU as appropriate.
For GPU inference, include --cuda and set --gpu_num to the desired GPU index.
Expected outcome
The README says the output image name is formed by adding out_ to the input filename.
Guide limitations
- The README does not provide a command for CPU-specific execution in the excerpted demo instructions.
- The guide follows the repository's listed platform and dependency requirements; it does not establish compatibility with other environments.
Generate depth outputs for an image folder
Use the documented demo to process a folder with a pretrained KITTI model.
Before you start
- Python 3.7 or later and PyTorch 1.6.0 or later.
- Ubuntu 16.04 and CUDA 9.2 are listed requirements; cuDNN is listed if CUDA is available.
- Install geffnet, path, IPython, blessings and progressbar.
- A downloaded pretrained KITTI model placed in ./pretrained/ and a folder of images.
Steps
Download a pretrained KITTI model and place it in ./pretrained/.
Run demo.py with --model_dir pointing to the model, --img_folder_dir pointing to the image folder, and --pretrained KITTI.
For GPU execution, include --cuda and specify the GPU index with --gpu_num.
Expected outcome
The README says the output folder name is formed by adding out_ to the input folder name.
Guide limitations
- The documented folder example uses a KITTI model; the README's folder command does not show an NYU example.
- The repository lists specific environment requirements and does not document compatibility guarantees for other setups.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 19 November 2026
- Original website title
- tjqansthd/LapDepth-release · Official homepage title · retained in its source language

