Acly / krita-ai-tools

Krita plugin which adds selection tools to mask objects with a single click, or by drawing a bounding box.
GNU General Public License v3.0
398 stars 20 forks source link

Error during image segmentation when selecting GPU #26

Open Yasand123 opened 2 months ago

Yasand123 commented 2 months ago

I installed this via the AUR package on Arch Linux. Everything seems to be running fine on default settings. However, when I switch to the GPU, I get the following error:

Error during image segmentation: /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1080 void onnxruntime::ProviderSharedLibrary::Ensure() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_shared.so with error: libonnxruntime_providers_shared.so: cannot open shared object file: No such file or directory

I wonder what the issue is?

kro-ai commented 2 weeks ago

I'm also having this issue.

Acly commented 2 weeks ago

GPU on Linux has a bunch of additional dependencies: Onnx GPU runtime, CUDA toolkit, cuDNN It's generally not worth the hassle to try and make it work.

I think the GPU button is meant to be grayed out if it can't be initialized, but it's possible this error isn't detected until it's actually running, which makes it difficult.