Package Details: krita-ai-tools 1.0.2-1

Git Clone URL: https://aur.archlinux.org/krita-ai-tools.git (read-only, click to copy)
Package Base: krita-ai-tools
Description: Krita plugin which adds selection tools to mask objects with a single click, or by drawing a bounding box.
Upstream URL: https://github.com/Acly/krita-ai-tools
Licenses: GPL
Submitter: kelvie
Maintainer: kelvie
Last Packager: kelvie
Votes: 1
Popularity: 0.013938
First Submitted: 2024-05-19 21:35 (UTC)
Last Updated: 2024-05-19 21:35 (UTC)

Latest Comments

1 2 Next › Last »

nilCat commented on 2024-05-25 07:15 (UTC)

@kelvie

Yes, I'm indeed new to Arch. Thanks for your guidance!

I've installed onnxruntime cuda cudnn nccl openmpi on i3wm, the good news is it no longer pops errors, the bad news is it freezes and crashes when I click on the image with the GPU button pressed. I tried running Krita from terminal, and the following is what it shows when the issue happens. (not sure if I correctly posted the bbcode here, forgive me if I was wrong.)


#...
/usr/share/krita/pykrita/scripter/ui_scripter/editor/pythoneditor.py:274: SyntaxWarning: invalid escape sequence '\)'
  """The return key has just been pressed (and processed by the editor)
krita.general: Unexpected tool event has come to endStroke while being mode 0 !
free(): invalid pointer
Aborted (core dumped)

kelvie commented on 2024-05-24 22:53 (UTC)

nilCat: sorry, I didn't realize you were new to arch.

Anyway, after you install packages (like onnxruntime), it'll list a bunch of optional dependencies. Or if you look on the page on package: https://archlinux.org/packages/extra/x86_64/onnxruntime/

Under the "dependencies" section you'll notice there were three extra packages that need to be installed if you're an nvidia GPU user. You probably don't want those other packages, but this may be your lesson to fact check things before trusting ChatGPT.

nilCat commented on 2024-05-24 06:32 (UTC)

@kelvie

As suggested by ChatGPT regarding my GPU, I've installed onnxruntime-opt and python-onnxruntime-opt, uninstalled onnxruntime due to conflict, rebooted, but the issue is still there. Actually my CPU is okay for this tool too, I wanted to use GPU just because there is a button and my OCD :)

I think I'll be trying wayland soon and not sure if I'll still be available to follow up this issue. If it doesn't work with wayland either, I'll post this issue on upstream when I have time.

Thank you for mentioning wayland.

kelvie commented on 2024-05-24 00:21 (UTC)

nilCat:

Did you read the optional packages for onnxruntime? you have to install a bunch more packages depending on what GPU you use (you have to install 3 for nvidia if I remember correctly)

I also use the ai-diffusion plugin, but that works regardless of krita's ongoings cause it talks to an external server. You can file an issue upstream with the maintainer of krita-ai-tools on github to get more help, I was going to but didn't end up having time, and my CPU is fast enough.

nilCat commented on 2024-05-24 00:14 (UTC)

@kelvie

Sadly no. I installed onnxruntime, rebooted, but it still doesn't work.

With CPU option, krita-ai-tools works well though, but not GPU.

Also, krita-ai-diffusion works great with GPU.

Error message:

Error during image segmentation: /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1131 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcublasLt.so.12: cannot open shared object file: No such file or directory

kelvie commented on 2024-05-23 21:54 (UTC)

nilcat:

I can add that as an optional depends if it works for you.

You have to install https://archlinux.org/packages/extra/x86_64/onnxruntime/

Although I have that installed, and found that it doesn't work in wayland cause Krita chooses to run in X11 (I think for tablet support or something?), I haven't (and don't really want to) tested it in X11, but if you let me know it works I can add it as an optional dependency

nilCat commented on 2024-05-23 20:13 (UTC) (edited on 2024-05-23 20:16 (UTC) by nilCat)

My GPU is NVIDIA GeForce RTX 2060 SUPER, when I select GPU and try to use the tools on the image, it pops the following dialogue:

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

nilCat commented on 2024-05-23 19:49 (UTC)

@kelvie

Cool! My bad, I just confused it with krita-ai-diffusion. krita-ai-tools is very useful Voted!

kelvie commented on 2024-05-23 19:35 (UTC) (edited on 2024-05-23 19:36 (UTC) by kelvie)

nilCat: That's because it's not a python plugin :) This requires an PKGBUILD because it is a library (presumably C or C++) plugin, which can't be sandboxed properly and thus can't be user-installed (only root-installed). You may want to read the docs:

https://github.com/Acly/krita-ai-tools

It just adds 2 new buttons to the toolbar

nilCat commented on 2024-05-23 19:20 (UTC) (edited on 2024-05-23 19:27 (UTC) by nilCat)

@kelvie

PPM stands for Python Plugin Manager.

It can be found this way: Krita - Settings - Configure Krita - Python Plugin Manager