ONNX Runtime tiny wrapper for openFrameworks Modified by Ryo Hajika
Go to ONNX runtime release page to download precompiled library file and download under libs folder.
(for macOS I bundled 1.19.2 universal lib so should be working on both Intel and Mx Macs)
- macOS
- Generate a project using ProjectGenerator.
- Windows (untested)
- There are two ways to install ONNX Runtime on your project.
- Install using NuGet
- I recommend this way in general.
- Generate a project using ProjectGenerator.
- Open
slnfile. - Right click your project on
Solution Explorerpane, and then selectManage NuGet Packages.... - From
Browsetab, searchMicrosoft.ML.OnnxRuntime(CPU) orMicrosoft.ML.OnnxRuntime.Gpu(GPU) and install it.
- DLL direct download
- You can download prebuilt DLLs from here.
- Unzip downloaded
onnxruntime-win-x64-(gpu-)1.10.0.zipand locate files onlibs\onnxruntime\lib\vs\x64\. - Generate a project using ProjectGenerator, then all libs are linked correctly and all dlls are copied to
bin.
- oF 0.12.0 + Mac mini M2 + macOS Sonoma
- Test for Mactel
- Test for Windows
- Implement the use of MPS on macOS
- I heavily referred Lite.AI.ToolKit implementation.
