Home PyTorch High Res Stereo Depth Estimation
Post
Cancel

Open In Github

Python scripts form performing stereo depth estimation using the high res stereo model in PyTorch.

High res stereo depth estimation Pytorch Stereo depth estimation on the cones images from the Middlebury dataset (https://vision.middlebury.edu/stereo/data/scenes2003/)

Requirements

  • OpenCV, imread-from-url and pytorch. Also, pafy and youtube-dl are required for youtube video inference.

Installation

1
2
pip install -r requirements.txt
pip install pafy youtube-dl

Pytorch: Check the Pytorch website to find the best method to install Pytorch in your computer.

Pretrained model

Download the pretrained model from the original repository and save it into the models folder.

Examples

  • Image inference:
1
 python imageDepthEstimation.py 
  • Video inference:
1
 python videoDepthEstimation.py
  • DrivingStereo dataset inference:
1
 python drivingStereoTest.py

Inference video Example

High res stereo depth estimation Pytorch

References:

This post is licensed under CC BY 4.0 by the author.