feat: update AI denoise model
This commit is contained in:
1 parent
7c930ff1f8
commit
c916d0f831
2 files changed
+5
-4
No files matched your search
@@ -5,9 +5,9 @@ object AiDenoiseModelManager : HfModelInstaller(
|
||||
tag = "AiDenoiseModelManager",
|
||||
directory = "ml_models/scunet_color_real_psnr",
|
||||
fileName = "scunet_color_real_psnr.tflite",
|
||||
expectedSizeBytes = 47_200_352L,
|
||||
sha256 = "a0def81002254ee05676bd4a4708dea27c4276d264e22bb3f4dc70b44fcd45df",
|
||||
path = "/Binjia/scunet-color-real-psnr-litert/resolve/647a03f52d333d2bd06126d1182a027ee9cd6624/scunet_color_real_psnr.tflite",
|
||||
expectedSizeBytes = 47_273_792L,
|
||||
sha256 = "22791ec0a15900a43fefc8bc79da8b85094f9e7221d05a2162a05238e912b357",
|
||||
path = "/Binjia/scunet-color-real-psnr-litert/resolve/f373d61ab1512b5f095cc170759c8e3582e46c39/scunet_color_real_psnr.tflite",
|
||||
legacyDirectories = listOf(
|
||||
"ml_models/nafnet_sidd_w32",
|
||||
"ml_models/scunet_color_25",
|
||||
|
||||
@@ -205,7 +205,8 @@ object AiDenoiser {
|
||||
modelSizeBytes = file.length().toInt(),
|
||||
modelFingerprint = AiDenoiseModelManager.sha256,
|
||||
)
|
||||
// FP16 is safe: LayerNorm is pre-scaled so its variance stays within FP16 range.
|
||||
// FP16 is safe: LayerNorm is range-normalised so neither its squares overflow nor its
|
||||
// variance / eps fall into the subnormals that some GPUs flush to zero.
|
||||
val gpu = LiteRtGpuModel.fromFile(
|
||||
file = file,
|
||||
cache = cache,
|
||||
|
||||
Reference in new issue
Block a user