Tested on Linux Mint 22 with Nvidia RTX 4060 laptop.
Yes.
Yes, no problem.
Yes. Didn’t try with -d ai, but since the processing went 10 times faster than on CPU, it’s obvious that it works. I also find the final denoised image a bit better when running on GPU
Fun to test this, but I’m not shure I’ll use this very often. The ai masking seems more useful for me.
I’m on Ubuntu 26.04 beta. Intel compute runtime is handled by intel opencl-icd package. Opencl compute runs well on other modules in darktable. I just found out that openvino is not yet officially supported on Ubuntu 26.04. Given its impending general release, I will just wait until it is supported. CPU works well until then.
I’ve barely started on this dt stuff yet, but, on seeing your post, took another look at ubuntu cuDNN stuff.
You should be able to install it from nvidia. Start here
I’ve just run through this for my Linux Mint )Ubuntu 24.4. It seems to have completed without error. But it was one of those distract myself from going to bed jaunts, so won’t be checking out the dt install right now.
Thanks for this…first attempt I just cut and pasted and ran…Error was couldn’t find the manifest …then I compared your original instructions and found hat extra bit of text was missing so I added it and everything went smoothly and though I only tried it on a couple of images it seems to work just fine…Thanks for all your efforts to make these tools available in DT as options and enhancements
It worked fine with the distro’s own package; I think it’s just a difference in naming:
The package nvidia-cudnn, currently at version 9.0.0.312~cuda12 provides the library file libcudnn.so.9. Maybe it’s worth double-checking the message the script displays.
Thank you, but I have nvidia-cudnn/stable,now 9.0.0.312~cuda12 amd64 [installed] from Debian and I think it works fine. Please correct me if I am wrong, but I thought the warning was triggered because of some package naming convention. At least I can verify that GPU does the job of denoising and upscaling with nvidia-smi (and it is > 10x faster than CPU).
What is not working correctly on my system? EDIT: Debian 13.4.
Just got darktable compiled with the AI features. On my Ubuntu 24.04, AMD cpu and Nvidia GPU PC. When I go to Settings - AI features, I can enable the AI features alright.
But here is where problems start: I leave the execution provider on ‘default’. When I click on the ‘detect’ button I get the message ‘No system ONNX runtime library found’ ‘Install one via your package manager or use the browse button to select a custom build’.
When I consult my package manager ‘apt search onnx’ I find the libonnx-dev. But installing this does not help. There is a python3 library, ‘python3-onnx’, but this does not work either. What exactly do I need to install on Ubuntu 24.04 to get an ONNX runtime?
I understand that you cannot provide detailed instructions for every OS under the sun, but the term ‘system ONNX runtime’ seems not clear enough.
I found a second problem in the settings dialog; there are two mask models listed. The second one, ‘mask segnext vitb-sax2 hq’ seems fine and can be downloaded. But the first ‘mask sam2.1 hiera small’ can be selected for download, but the download does not occur. There is no error message; it just silently fails.
When selecting that model and clicking on the download button, I get this output on the console:
Just replying to my own post. The problem with ‘detect’ coming up with an error still persists. But I found the missing library.
When attempting to use AI masking, I got an error. On the console darktable was looking for /home/markus/Workbench/darktable/build/lib/darktable/libonnxruntime.so. This was missing. Copying the library there fixed the problem and AI masking is now working!
@Markus_b The default and recommended way to install ONNX Runtime dependency on Linux is using system package onnxruntime-dev. It may not be available on older distros.
Auto-download option is not covered by our CI and may not be fully predictable.
If you use AppImage nightly build, it will have ONNX Runtime bundled.
Scripts described in this thread can help you install GPU-accelerated ONNX Runtime. If you will have custom ONNX Runtime for NVidia GPU you will not need anything else.
Correct. On Linux bundled ONNX Runtime currently supports only CPU. Please, see my first message in this thread regarding how you can add GPU acceleration support.