From 112d7f82a4fccbe26ae2b4696d87464494253ce1 Mon Sep 17 00:00:00 2001 From: skal Date: Fri, 13 Feb 2026 23:42:53 +0100 Subject: CNN v2: Remove vizScale, always clip to [0,1] All layers now use scale 1.0, shader clamps values >1. Co-Authored-By: Claude Sonnet 4.5 --- checkpoints/checkpoint_epoch_80.pth | Bin 36475 -> 36475 bytes checkpoints/checkpoint_epoch_85.pth | Bin 36475 -> 36475 bytes tools/cnn_v2_test/index.html | 3 +-- 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/checkpoints/checkpoint_epoch_80.pth b/checkpoints/checkpoint_epoch_80.pth index 8a795d7..ab5cdd1 100644 Binary files a/checkpoints/checkpoint_epoch_80.pth and b/checkpoints/checkpoint_epoch_80.pth differ diff --git a/checkpoints/checkpoint_epoch_85.pth b/checkpoints/checkpoint_epoch_85.pth index 9ba606a..7efc6fa 100644 Binary files a/checkpoints/checkpoint_epoch_85.pth and b/checkpoints/checkpoint_epoch_85.pth differ diff --git a/tools/cnn_v2_test/index.html b/tools/cnn_v2_test/index.html index 73a9f55..dd1e42b 100644 --- a/tools/cnn_v2_test/index.html +++ b/tools/cnn_v2_test/index.html @@ -1527,8 +1527,7 @@ class CNNTester { continue; } - // Static features: 1.0, Layer 0: 1.0 (clamped [0,1]), Middle layers: 0.5 (ReLU, can be >1) - const vizScale = (layerIdx === 0 || layerIdx === 1) ? 1.0 : 0.5; + const vizScale = 1.0; // Always 1.0, shader clamps to [0,1] const paramsBuffer = this.device.createBuffer({ size: 8, usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST -- cgit v1.2.3