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
+14 -5
View File
@@ -24,8 +24,17 @@ Versions are those resolved in `package-lock.json`; the lens database pin is
| libvips (bundled in `sharp` binaries) | shipped by `sharp` 0.35.5 | LGPL-2.1-or-later | © libvips contributors — https://github.com/libvips/libvips |
| `exifr` | 7.1.3 | MIT | © 2020 Mike Kovařík, Mutiny.cz — https://github.com/MikeKovarik/exifr |
| `nodemailer` | 7.0.13 | MIT-0 | © 2011-2023 Andris Reinman — https://github.com/nodemailer/nodemailer |
| `onnxruntime-node` (ONNX Runtime native libraries) | 1.23.0 | MIT | © Microsoft Corporation — https://github.com/microsoft/onnxruntime |
| SCUNet colour-denoise weights (`server/denoise/scunet_color_25.onnx`) | `scunet_color_25` | Apache-2.0 | © Kai Zhang and SCUNet contributors — https://github.com/cszn/SCUNet; ONNX export https://github.com/Heliosoph/scunet-onnx |
| React / React DOM | 18.3.1 | MIT | © Facebook, Inc. and its affiliates — https://github.com/facebook/react |
`onnxruntime-node` is pulled in only by the optional SCUNet denoise base; the Guided and
NLM bases are plain TypeScript. Its install step is skipped in the Docker image and the
desktop bundles (`ONNXRUNTIME_NODE_INSTALL=skip`), so only the CPU runtime that ships in
the package is distributed. The SCUNet model is a converted export of the upstream
Apache-2.0 weights and keeps that licence; its `.onnx` file and the external `.onnx.data`
shard are one artefact and must travel together.
The lens database is a separate asset from Luminary's code: CC BY-SA 3.0 applies to
Lensfun's calibration data, not to the correction engine that reads it. Attribution and
share-alike requirements are summarised in the README under
@@ -138,9 +147,9 @@ the following restrictions:
### Apache-2.0
Applies to `sharp` and TypeScript. The full text is included verbatim in
[`licenses/Apache-2.0.txt`](licenses/Apache-2.0.txt), copied from the licence that
`sharp` ships.
Applies to `sharp`, TypeScript and the SCUNet denoise weights. The full text is included
verbatim in [`licenses/Apache-2.0.txt`](licenses/Apache-2.0.txt), copied from the licence
that `sharp` ships.
### ISC
@@ -172,6 +181,6 @@ and libvips notices with it.
## Trademarks
Lensfun, LibRaw, libvips, sharp, React, Node.js, Debian, Liberation and DejaVu are the
marks of their respective owners. They are used only to identify the software
Lensfun, LibRaw, libvips, sharp, ONNX Runtime, SCUNet, Microsoft, React, Node.js,
Debian, Liberation and DejaVu are the marks of their respective owners. They are used only to identify the software
involved; Luminary is not affiliated with or endorsed by any of them.