Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 2.1 KB

File metadata and controls

57 lines (39 loc) · 2.1 KB

ONNX-CoEx-Stereo-Depth-estimation

Python scripts form performing stereo depth estimation using the CoEx model in ONNX.

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

Requirements

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

Installation

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

ONNX model

The original models were converted to different formats (including .onnx) by PINTO0309, download the models from his repository and save them into the models folder.

Original Pytorch model

The Pytorch pretrained model was taken from the original repository.

Examples

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

CoEx stereo depth estimation ONNX

References: