Ship the denoise model in the Arch package, the APK and the Windows installer

Same LFS-pointer guard as the other models; the APK copies it out of its
assets with the rest.
This commit is contained in:
2026-10-03 11:51:01 -04:00
parent dd43f498fb
commit 960014803a
4 changed files with 13 additions and 3 deletions
+9
View File
@@ -123,4 +123,13 @@ package() {
return 1
fi
install -Dm644 "${_src}" "${pkgdir}/usr/share/darkroom/models/migan-512.onnx"
# The learned demosaic and denoise (the project's own weights, GPL —
# models/LICENCE.md). Same pointer check, same directory.
_src="models/denoise/mosaic-1408.onnx"
if [[ "$(stat -c%s "${_src}")" -lt 100000 ]]; then
echo "error: the denoise model is an LFS pointer — run: git lfs pull" >&2
return 1
fi
install -Dm644 "${_src}" "${pkgdir}/usr/share/darkroom/models/mosaic-1408.onnx"
}