Giter VIP home page Giter VIP logo

onnxed-midas-depth-estimater's Introduction

Midas Monocular Depth Estimation

Version

cuda 12.2
Driver Version: 535.15
Python 3.8.10
pytorch 2.2.0+cu121
tourchvision 0.17.0+cu121
onnx 1.7.0
onnxruntime 1.5.2

how to use

pytorch

# pytorch inference
$ python3 midas_predict.py --mode <model_version> -i <input path> -o <output path>

# pytorch realtime inference
$ python3 realtime_predict.py -m <model_version> -onnx none -v <video path> -o <output path> -s <plot show>

ONNX

# onnx convert
$ python3 onnx_main.py --mode convert --model_path <pytorch weight path>

# onnx inferece
$ python3 onnx_main.py --mode inference --model_path <pytorch weight path> -i <input path> -o <output path> --onnx_model_path <onnx path>

# onnx realtime inferece
$ python3 realtime_predict.py -onnx <onnx_model_path> -v <video path> -o <output path> -s <plot show>

result

Pytorch (midas-3.1 Large)

ONNX (Midas-2.1)

References

onnxed-midas-depth-estimater's People

Contributors

madara-tribe avatar

Watchers

 avatar

onnxed-midas-depth-estimater's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.