ONNX Runtime tiny wrapper for openFrameworks
Forks
Forks pushed to more recently than hanasaan/ofxOnnxRuntime itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
README
ofxOnnxRuntime
ONNX Runtime tiny wrapper for openFrameworks
Installation
- macOS
- copy
libonnxruntime.1.10.0.dylibto/usr/local/lib - Generate a project using ProjectGenerator.
- Windows
- There are two ways to install ONNX Runtime on your project.
- 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.
- 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.
Tested environment
- oF 0.11.2 + MacBookPro 2018 Intel + macOS Catalina
- oF 0.11.2 + VS2017 + Windows 10 + RTX2080Ti + CUDA 11.4
ToDo
- check M1 Mac (should work), Linux CPU&GPU
Reference Implementation
- I heavily referred Lite.AI.ToolKit implementation.
ofxAddons