Giter Club home page Giter Club logo

sahi-yolox-onnx-sample's Introduction

sahi-yolox-onnx-sample

SAHI(Slicing Aided Hyper Inference)YOLOX(ONNX)で動かしたサンプルです。

SAHI-YOLOX-DEMO.mp4

左図:通常推論(sample_prediction.py) 右図:SAHI(sample_sliced_prediction.py)

Requirement

  • onnxruntime 1.10.0 or later
  • Shapely 1.8.1 or later

Demo

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

python sample_sliced_prediction.py
  • --device
    カメラデバイス番号の指定
    デフォルト:0
  • --movie
    動画ファイルの指定 ※指定時はカメラデバイスより優先
    デフォルト:指定なし
  • --width
    カメラキャプチャ時の横幅
    デフォルト:960
  • --height
    カメラキャプチャ時の縦幅
    デフォルト:540
  • --model
    ロードするYOLOXモデルの格納パス
    デフォルト:yolox/model/yolox_nano.onnx
  • --config
    YOLOXのコンフィグファイル格納パス
    デフォルト:yolox/config.json
  • --slice_height
    SAHIの画像スライス高さ
    デフォルト:512
  • --slice_width
    SAHIの画像スライス幅
    デフォルト:512
  • --overlap_height_ratio
    SAHIの画像スライス時の高さ方向のオーバーラップ率
    デフォルト:0.2
  • --overlap_width_ratio
    SAHIの画像スライス時の幅方向のオーバーラップ率
    デフォルト:0.2
  • --draw_score_th
    描画時のスコア閾値
    デフォルト:0.3

Reference

Author

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

License

sahi-yolox-onnx-sample is under MIT License.

License(Movie)

サンプル動画はNHKクリエイティブ・ライブラリーカモメのハンティングを使用しています。

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.