I am working with OnnxRuntime side Unity3D. I installed Microsoft.ML.Onnxruntime packages using NugetForUnity. However, at runtime I run into this exception:
EntryPointNotFoundException: OrtGetApiBase Microsoft.ML.OnnxRuntime.NativeMethods..cctor () (at <2b5de034e06549d8a90fddfdbe8a7978>:0) Rethrow as TypeInitializationException: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception. Microsoft.ML.OnnxRuntime.SessionOptions..ctor () (at <2b5de034e06549d8a90fddfdbe8a7978>:0) Microsoft.ML.OnnxRuntime.InferenceSession..ctor (System.String modelPath) (at <2b5de034e06549d8a90fddfdbe8a7978>:0) TestScript.Start () (at Assets/Scenes/TestScript.cs:74)
The same script and setup works fine with my previous approaches in which I manually made Onnxruntime setup using .dll files and it worked fine with Unity scripts. Now I wanted to try NugetForUnity package manager for installation but I ran into this. Any guidance?
Hi. Thank you for the package.
I am working with OnnxRuntime side Unity3D. I installed Microsoft.ML.Onnxruntime packages using NugetForUnity. However, at runtime I run into this exception:
EntryPointNotFoundException: OrtGetApiBase Microsoft.ML.OnnxRuntime.NativeMethods..cctor () (at <2b5de034e06549d8a90fddfdbe8a7978>:0) Rethrow as TypeInitializationException: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception. Microsoft.ML.OnnxRuntime.SessionOptions..ctor () (at <2b5de034e06549d8a90fddfdbe8a7978>:0) Microsoft.ML.OnnxRuntime.InferenceSession..ctor (System.String modelPath) (at <2b5de034e06549d8a90fddfdbe8a7978>:0) TestScript.Start () (at Assets/Scenes/TestScript.cs:74)
The same script and setup works fine with my previous approaches in which I manually made Onnxruntime setup using .dll files and it worked fine with Unity scripts. Now I wanted to try NugetForUnity package manager for installation but I ran into this. Any guidance?