Offer SCUNet and NLM alongside the guided denoise

The AI denoise panel now picks between three bases: the existing guided
filter, non-local means and a learned SCUNet model run through
onnxruntime-node on overlapping tiles. The base is part of the render key, so
each model keeps its own cached render and switching back is instant, and jobs
report stage and tile progress instead of a bare spinner.

onnxruntime-node is pinned to 1.23.0, the last release that ships both macOS
architectures, and every Docker and desktop install skips its CUDA download
because only the CPU binaries in the package are used. The SCUNet weights and
ONNX Runtime are added to the third-party notices, the deb copyright file and
the README's denoise, API and redistribution sections.
This commit is contained in:
2026-12-01 04:03:53 +00:00
parent b34d34dacb
commit f7942d0bd0
26 changed files with 945 additions and 161 deletions
+3 -1
View File
@@ -276,7 +276,8 @@ function installWindowsDeps(bundle) {
log('deps', 'npm ci --omit=dev --os=win32 --cpu=x64 (sharp win32-x64 prebuild)');
// --ignore-scripts is safe: sharp 0.35 has no install step, it resolves the
// prebuilt binary through optionalDependencies, and running a Windows-only
// script on the build host would fail for no reason.
// script on the build host would fail for no reason. The ONNX skip keeps the
// postinstall from downloading the CUDA build; CPU binaries ship in the package.
run(
NPM,
[
@@ -289,6 +290,7 @@ function installWindowsDeps(bundle) {
'--ignore-scripts',
],
appDir,
{ ONNXRUNTIME_NODE_INSTALL: 'skip' },
);
// .bin shims are for a shell, not for `node server/index.mjs`; on a Linux
// build they would also be POSIX symlinks inside the zip.