-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Onnxruntime errors on startup of Unity Project #12
Comments
That's weird,
|
Yes your build version works great, I just used beit model with onnx Cuda setting and it works. I can't build because of the errors, It doesn't seem to work with the other .dll files either. I even tried replacing all the onnx .dll files for the Unity the project completely and used dependencies program to analyze, they are all 64-bit, but always the same error. It doesn't really make sense to me since it's 64-bit unity and correct version. |
This is really weird. To test furthermore I suggest you delete all other dll files other than
If none works just remove the dll files and comment out |
Could this be why? I didn't notice this error before when git cloning (wasn't paying attention after I cloned repo) I'm not sure what this means or what to do. I also tried manually downloading the zip file and git clone https://github.com/parkchamchi/DepthViewer for repo but same problem. I have tried downloading the file separately like you said though but the only file present in the Microsoft.ML.OnnxRuntime.DirectML.1.16.3.nuget (renamed to .zip and extract) \build\netstandard2.0 is Microsoft.ML.OnnxRuntime.DirectML.props I deleted all the other dll's but is still also getting microsoft ML missing errors due to it being probably not downloading correctly from your repo. Having a very hard time finding Microsoft.ML.OnnxRuntime.dll online (130kb). The link you posted doesn't work also. I will try your other workarounds, hoping this will not disable onnx gpu acceleration though by doing this? |
Yup, my Git LFS bandwith was full (1.7GB out of 1GB), so you would get corrupted dll files -- which Unity could not parse.
You are not meant to download
Are |
Yes all present. I was just able to resolve this 10 minutes ago using microsoft.ml.onnxruntime.managed.1.12.0.nuget it was the only file I could find that has the lib folder and a 130kb Microsoft.ML.OnnxRuntime.dll file. It's working now! The ones I tried in the readme though in plugins folder did not have the Microsoft.ML.OnnxRuntime.dll file anymore. |
I noticed the onnxruntime .dll files show 3 errors by default when you open this project in Unity, and are not set to "load on startup" so I selected all the onnxruntime dll files under \DEPTH\Assets\Plugins\OnnxRuntimeDlls\win-x64 and set load on startup.
They try to load now but there are 4 new errors I highlighted for all of them about "expected x64 architecture, but was Unknown architecture. You must recompile your plugin for x64 architecture." I am using 64 bit Unity version 2021.3.10f1 I have tried on two separate systems and same errors.
I tried to change the any platform and platform settings for the .dll but it makes no difference.
The text was updated successfully, but these errors were encountered: