diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-14 00:54:40 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-14 00:54:40 +0100 |
| commit | ee58ffce299eca055e5668381061cd996d6fd4f6 (patch) | |
| tree | e6e85b6011ea2a52c900ec5f15efa714945084b5 | |
| parent | 1d9f8dafab473e9660614a1970be3a1bfeada0e0 (diff) | |
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 <noreply@anthropic.com>
| -rw-r--r-- | tools/cnn_v2_test/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
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({ |
