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:
+14
-1
@@ -237,11 +237,14 @@ function installLinuxDeps(bundle) {
|
||||
cpSync(path.join(ROOT, 'package-lock.json'), path.join(appDir, 'package-lock.json'));
|
||||
log('deps', 'npm ci --omit=dev --os=linux --cpu=x64 (sharp linux-x64 prebuild)');
|
||||
// --ignore-scripts is safe: sharp 0.35 has no install step, it resolves the
|
||||
// prebuilt binary through optionalDependencies.
|
||||
// prebuilt binary through optionalDependencies. ONNXRUNTIME_NODE_INSTALL=skip
|
||||
// also keeps onnxruntime-node's postinstall from pulling the CUDA libraries;
|
||||
// the package already ships its CPU binaries.
|
||||
run(
|
||||
NPM,
|
||||
['ci', '--omit=dev', '--os=linux', '--cpu=x64', '--no-audit', '--no-fund', '--ignore-scripts'],
|
||||
appDir,
|
||||
{ ONNXRUNTIME_NODE_INSTALL: 'skip' },
|
||||
);
|
||||
// .bin shims are for an interactive shell, not for `node server/index.mjs`.
|
||||
rmSync(path.join(appDir, 'node_modules', '.bin'), { recursive: true, force: true });
|
||||
@@ -529,6 +532,16 @@ function debCopyright() {
|
||||
'License: MIT',
|
||||
' The full MIT licence text is in /opt/luminary/LICENSE.',
|
||||
'',
|
||||
'Files: opt/luminary/app/node_modules/onnxruntime-node/*',
|
||||
'Copyright: Microsoft Corporation',
|
||||
'License: MIT',
|
||||
' ONNX Runtime; see /opt/luminary/THIRD_PARTY_NOTICES.md.',
|
||||
'',
|
||||
'Files: opt/luminary/app/server/denoise/scunet_color_25.onnx*',
|
||||
'Copyright: Kai Zhang and SCUNet contributors',
|
||||
'License: Apache-2.0',
|
||||
' See /opt/luminary/THIRD_PARTY_NOTICES.md.',
|
||||
'',
|
||||
].join('\n');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user