Skip to content

torinos-yt/NNOnnx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NNOnnx

This is an alternative to Barracuda for even faster machine learning inference on Unity in limited situations using the onnxruntime and CUDA api.

By using CUDA's Graphics Interoperability feature, NNOnnx uses resources on the GPU such as GraphicsBuffer and Texture directly as CUDA resources without copying them to the CPU. This is more useful for models that require higher resolution image input.

This provides the inference on more diversified onnx models and faster runtime speeds on PC platforms where CUDA available compared to the Unity Barracuda.

NNOnnx is not intended to be a full wrapper around onnxruntime for Unity. If you want to use the full functionality of onnxruntime, use Microsoft.ML.OnnxRuntime Nuget.

System Requirements

  • Unity 2020.1 or higher
  • Windows: x64, D3D11
  • NVIDIA GPU
  • Path to DLLs contained in
    • CUDA 11.x
    • cuDNN
    • TensorRT (Optionally, but most faster)

For more information on CUDA, cuDNN, and TensorRT version compatibility, please check here and here. The easiest way to get these is to install the latest Azure Kinect Body Tracking SDK.

Install

NNOnnx uses the Scoped registry feature of Package Manager for installation. Open the Package Manager page in the Project Settings window and add the following entry to the Scoped Registries list:

  • Name: torinos
  • URL: https://registry.npmjs.com
  • Scope: jp.torinos

Now you can install the package from My Registries page in the Package Manager window.

Related Project

About

Using CUDA for Faster Machine Learning Inference on Unity

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published