-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Linux] onnxruntime not detected #32
Comments
I believe I've found the problem. The Linux build didn't have the correct NuGet package with the OnnxRuntime files. Heres the release: https://github.com/Particle1904/DatasetHelpers/releases/tag/v2.8.2 |
Hey, thanks for the fast reply! This new release did indeed fix the issue with the onnxruntime. Thank you very much for your help, my friend! You guys built an awesome application. Since the issue has been resolved, I'm marking it as resolved. |
It seems I've closed the issue too soon :) Unhandled exception. Microsoft.ML.OnnxRuntime.OnnxRuntimeException: [ErrorCode:NoSuchFile] The ONNX Runtime extensions library was not found. The Microsoft.ML.OnnxRuntime.Extensions NuGet package must be referenced by the project to use 'OrtExtensions.RegisterCustomOps. Outlining my steps: Download new v2.8.2 release from Github. cd linux-x64 Go to |
Its failing to load the Clip Tokenizer onnx extension that is used to count number of tokens, but I don't really understand why. It works on Windows. Maybe the onnx extension package isn't supported in Linux. I'll add a hotfix so it doesn't crash if it can't load it. Edit: Seems like its a common issue with Linux
|
I've released a new hotfix for this issue: https://github.com/Particle1904/DatasetHelpers/releases/tag/v2.8.3 Let me know if it works. |
Hey, good news! v2.8.3 does prevent the crash. As for the possible cause of this being a dependency on a missing libssl, I've checked that I have The fix mentioned in the second link you've sent (https://stackoverflow.com/questions/72133316/libssl-so-1-1-cannot-open-shared-object-file-no-such-file-or-directory/72633324#72633324) contains a fix likely to be specific to Debian-based Linux distribution, of which my operating system is not. This fix may work for those Debian-based distros, but these files on Arch Linux may brick the OS, so I won't be trying them. Perhaps another Linux user will run into the same problem and may try to see if this resolves their error. That being said, the application is now perfectly usable on my Arch Linux machine!
|
I won't investigate any further for now, I honestly have no idea what the issue really is. Thanks for the help with testing. |
Bug Description
onnxruntime is not being detected by the app.
Tried through Github release v2.8.1 as well as building it from source with the same result.
Any help would be greatly appreciated. Thanks in advance, fellas!
Steps to Reproduce
Outline the steps to reproduce the behavior:
Downloaded
dotnet-runtime
anddotnet-sdk
via pacman.(i.e., sudo pacman -S dotnet-runtime dotnet-sdk)
Download v2.8.1 release from github.
cd
chmod +x DatasetProcessorDesktop
./DatasetProcessorDesktop
App launches.
Go to
Generate Tags
.Set input/output folders.
WDv3 model selected.
Hit
Generate Tags
button.Log messages say "Downloading WDV3Model.onnx file..." for ~18secs.
"Something went wrong! Error log will be saved in the logs folder."
Tags not generated.
Expected Behavior
The application should detect onnxruntime and generate the tags.
Environment Details
Complete the following information:
Additional Context
Here is the output of the error log:
Exception Details
Date and Time: 2024-07-27 15:39:26
Source: Microsoft.ML.OnnxRuntime
Message: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.
Help Link:
HResult: -2146233036
Inner Exception Details
Source: Microsoft.ML.OnnxRuntime
Message: Unable to load shared library 'onnxruntime' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
/home/sheep/Programs/linux-x64/onnxruntime.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.6/onnxruntime.so: cannot open shared object file: No such file or directory
/home/sheep/Programs/linux-x64/libonnxruntime.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.6/libonnxruntime.so: cannot open shared object file: No such file or directory
/home/sheep/Programs/linux-x64/onnxruntime: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.6/onnxruntime: cannot open shared object file: No such file or directory
/home/sheep/Programs/linux-x64/libonnxruntime: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.6/libonnxruntime: cannot open shared object file: No such file or directory
Help Link:
HResult: -2146233052
Stack Trace
at Microsoft.ML.OnnxRuntime.SessionOptions..ctor()
at SmartData.Lib.Services.Base.BaseAIConsumer
2.LoadModel() in E:\dev\DatasetHelpers\SmartData.Lib\Services\Base\BaseAIConsumer.cs:line 60 at SmartData.Lib.Services.Base.BaseAutoTaggerService
2.LoadModel() in E:\dev\DatasetHelpers\SmartData.Lib\Services\Base\BaseAutoTaggerService.cs:line 64at SmartData.Lib.Services.Base.BaseAutoTaggerService`2.GenerateTags(String inputPath, String outputPath, Boolean weightedCaptions) in E:\dev\DatasetHelpers\SmartData.Lib\Services\Base\BaseAutoTaggerService.cs:line 99
at DatasetProcessor.ViewModels.GenerateTagsViewModel.CallautoTaggerService(IAutoTaggerService autoTagger) in E:\dev\DatasetHelpers\DatasetProcessor\ViewModels\GenerateTagsViewModel.cs:line 214
at DatasetProcessor.ViewModels.GenerateTagsViewModel.MakePredictionsAsync() in E:\dev\DatasetHelpers\DatasetProcessor\ViewModels\GenerateTagsViewModel.cs:line 160
Target Site
Declaring Type: Microsoft.ML.OnnxRuntime.SessionOptions
Method Name: .ctor
Additional Information
The text was updated successfully, but these errors were encountered: