Giter Club home page Giter Club logo

openlenda-onnx-inference-sample's Introduction

openlenda-onnx-inference-sample

OpenLenda(日本の信号機検出+認識)のPythonでのONNX推論サンプルです。

image

Requirement

  • OpenCV 4.8.1.78 or later
  • onnxruntime 1.14.1 or later ※GPU推論する際は「onnxruntime-gpu」

Demo

デモの実行方法は以下です。

python sample_onnx.py --image=sample.jpg
  • --device
    カメラデバイス番号の指定
    デフォルト:0
  • --movie
    動画ファイルの指定 ※指定時はカメラデバイスより優先
    デフォルト:指定なし
  • --image
    画像ファイルの指定 ※指定時はカメラデバイス・動画ファイルより優先
    デフォルト:指定なし
  • --model
    ロードするモデルの格納パス
    デフォルト:model/openlenda_s.onnx
  • --score_th
    スコア閾値
    デフォルト:0.5
  • --nms_th
    NMS閾値
    デフォルト:0.01
  • --grouping_th
    同じバウンディングボックスの結果をグルーピングするIOU閾値
    デフォルト:0.8
  • --use_gpu
    GPU推論
    デフォルト:指定なし

ToDo

  • マルチクラスNMSの暫定実装の見直し

Reference

Author

高橋かずひと(https://twitter.com/KzhtTkhs)

License

openlenda-onnx-inference-sample is under Apache2.0 License.

License(Image)

サンプル画像はぱくたそ様の信号と車のライトがカラフルに反射する雨の道路を使用しています。

openlenda-onnx-inference-sample's People

Contributors

kazuhito00 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.