Git Product home page Git Product logo

cj-mills / onnx-directml-unity-tutorial Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 1.0 68.04 MB

This tutorial covers creating an object detection plugin for a Unity game engine project using ONNX Runtime and DirectML.

Home Page: https://christianjmills.com/posts/onnx-directml-unity-tutorial/part-1/

License: MIT License

C++ 32.44% C 1.70% C# 65.86%
tutorial unity directml object-detection onnxruntime yolox

onnx-directml-unity-tutorial's Introduction

ONNX Runtime → DirectML → Unity → Tutorial

Tutorial Links

  • Training Tutorial: Train a YOLOX model using IceVision.
  • Part 1: Create a dynamic link library (DLL) file in Visual Studio to perform object detection with a YOLOX model using ONNX Runtime and DirectML.
  • Part 2: Perform object detection in a Unity project with ONNX Runtime and DirectML.

Demo Video

unity-onnx-directml-demo.mp4

Training Code

Jupyter Notebook Colab         Kaggle        
GitHub Repository Open In Colab Kaggle

Note: Training on the free GPU tier for Google Colab takes approximately 11 minutes per epoch, while training on the free GPU tier for Kaggle Notebooks takes around 15 minutes per epoch.

Kaggle Datasets

Reference Images


Class Image
call call
dislike dislike
fist  fist
four four
like  like
mute  mute
ok  ok
one  one
palm  palm
peace peace
peace_inverted peace_inverted
rock rock
stop stop
stop_inverted stop_inverted
three three
three2 three2
two_up  two_up
two_up_inverted two_up_inverted

onnx-directml-unity-tutorial's People

Contributors

cj-mills avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

imclab

onnx-directml-unity-tutorial's Issues

Yolov7

Hi, can I use this plugin to load Yolov7-Tiny?

DllNotFoundException: ONNX_YOLOX_DLL assembly: type: member:(null)

Hi, Tried to use on Unity OSX 2021.3.5f1
error when I play in editor, all DLL placed in plugin folder like tutorial
(Assets/Plugins/x86_64/ONNX_YOLOX_DLL.dll)

DllNotFoundException: ONNX_YOLOX_DLL assembly: type: member:(null)
ObjectDetector.UploadTexture (UnityEngine.Texture2D texture) (at Assets/_MAIN/_ONNX-YOLOX/Scripts/ObjectDetector.cs:553)
ObjectDetector.Update () (at Assets/_MAIN/_ONNX-YOLOX/Scripts/ObjectDetector.cs:680)

Regards,

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.