Jill The Something
Jill The Something
CC#
Created by Jill The Something on 3/22/2024 in #help
EntryPointNotFoundException with ML.NET's OnnxRuntime
Im trying to use ML.NET to load an onnx model I made for predicting motion sickness in a unity game and I get this mess
EntryPointNotFoundException: OrtGetApiBase assembly:<unknown assembly> type:<unknown type> member:(null)
Microsoft.ML.OnnxRuntime.NativeMethods..cctor () (at <db8a5557c9b54ae7905ea2adba430b5c>:0)
Rethrow as TypeInitializationException: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.
...
Microsoft.ML.OnnxCatalog.ApplyOnnxModel (Microsoft.ML.TransformsCatalog catalog, System.String[] outputColumnNames, System.String[] inputColumnNames, System.String modelFile, System.Nullable`1[T] gpuDeviceId, System.Boolean fallbackToCpu) (at <23755ae4f3b243f8bebd1b959e7493a8>:0)
SicknessPredictor.Start () (at Assets/SicknessPredictor.cs:85)
EntryPointNotFoundException: OrtGetApiBase assembly:<unknown assembly> type:<unknown type> member:(null)
Microsoft.ML.OnnxRuntime.NativeMethods..cctor () (at <db8a5557c9b54ae7905ea2adba430b5c>:0)
Rethrow as TypeInitializationException: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.
...
Microsoft.ML.OnnxCatalog.ApplyOnnxModel (Microsoft.ML.TransformsCatalog catalog, System.String[] outputColumnNames, System.String[] inputColumnNames, System.String modelFile, System.Nullable`1[T] gpuDeviceId, System.Boolean fallbackToCpu) (at <23755ae4f3b243f8bebd1b959e7493a8>:0)
SicknessPredictor.Start () (at Assets/SicknessPredictor.cs:85)
according to this I need to load a dll in the "startup project"(in this case Assembly-CSharp) which already has Microsoft.ML.OnnxRuntime.dll in it. would someone know what I should do? Or just be wiling to debug w/ me?
5 replies