Skip to content

ibaiGorordo/ONNX-MobileStereoNet

Repository files navigation

ONNX-MobileStereoNet

Python scripts for performing stereo depth estimation using the MobileStereoNet model in ONNX

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

Requirements

  • Check the requirements.txt file. Additionally, pafy and youtube-dl are required for youtube video inference.
  • DrivingStereo dataset, ONLY for the driving_sereo_test.pyscript. Link: https://drivingstereo-dataset.github.io/

Installation

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

ONNX model

Download the ONNX model from Google Drive and save it into the models folder.

Original Pytorch model

The Pytorch pretrained model was taken from the original repository.

Examples

  • Image inference:
python image_depth_estimation.py 
  • Video inference:
python video_depth_estimation.py
  • DrivingStereo dataset inference:
python driving_sereo_test.py

MobileStereoNet depth estimation ONNX

References:

About

Python scripts for performing stereo depth estimation using the MobileStereoNet model in ONNX

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages