From ee58ffce299eca055e5668381061cd996d6fd4f6 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 14 Feb 2026 00:54:40 +0100 Subject: CNN v2 web tool: Remove vizScale, always show raw layer values Always use vizScale=1.0 for all layers. Shader clips to [0,1] for display. Shows exact layer output values without artificial dimming. Co-Authored-By: Claude Sonnet 4.5 --- tools/cnn_v2_test/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/cnn_v2_test/index.html') diff --git a/tools/cnn_v2_test/index.html b/tools/cnn_v2_test/index.html index 69336ab..1dd2e78 100644 --- a/tools/cnn_v2_test/index.html +++ b/tools/cnn_v2_test/index.html @@ -1619,8 +1619,8 @@ class CNNTester { const layerTex = this.layerOutputs[layerIdx]; if (!layerTex) return; - // Use 1.0 for static features and final layer (both clamped [0,1]), 0.5 for middle layers (unbounded) - const vizScale = (layerIdx === 0 || layerIdx === this.layerOutputs.length - 1) ? 1.0 : 0.5; + // Always 1.0, shader clamps to [0,1] - show exact layer values + const vizScale = 1.0; const actualChannel = channelOffset + this.selectedChannel; const paramsBuffer = this.device.createBuffer({ -- cgit v1.2.3