ONNX Runtime v1.16.2 crashes with Unity IDE #18441
Labels
api:CSharp
issues related to the C# API
platform:windows
issues related to the Windows platform
stale
issues that have not been addressed in a while; categorized by a bot
Describe the issue
Starting from ONNX Runtime v1.15.0 Unity crashes upon trying to create inference session from the .onnx model.
Note: ONNX Runtime v1.14.1 works as expected.
It gives out of memory exception.
It seems like changes introduced at v1.15.0 break for Unity environment.
It's targeting .NET Standard 2.1
To reproduce
Have UNITY IDE v 2022.3.3f1 or any other Unity 2022 version
Import Microsoft.ML.OnnxRuntime & Microsoft.ML.OnnxRuntime.Managed packages in the project
The import could be made by manually copying .NET Standard Microsoft.ML.OnnxRuntime DLL
Or use Nuget Manager ( https://github.com/GlitchEnzo/NuGetForUnity) to install the Onnx packages
Try to create a session using onnx model.
`using var session = new InferenceSession(path);
Run in the Unity editor in the playback mode or as Unity test.
Urgency
No response
Platform
Windows
OS Version
Windows 11 OS Build:22621.2428
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
v1.15.0
ONNX Runtime API
C#
Architecture
X64
Execution Provider
Other / Unknown
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: