diff options
Diffstat (limited to 'tools/cnn_v2_test/index.html')
| -rw-r--r-- | tools/cnn_v2_test/index.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/cnn_v2_test/index.html b/tools/cnn_v2_test/index.html index 622eecc..69336ab 100644 --- a/tools/cnn_v2_test/index.html +++ b/tools/cnn_v2_test/index.html @@ -1619,7 +1619,8 @@ class CNNTester { const layerTex = this.layerOutputs[layerIdx]; if (!layerTex) return; - const vizScale = layerIdx === 0 ? 1.0 : 0.5; + // 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; const actualChannel = channelOffset + this.selectedChannel; const paramsBuffer = this.device.createBuffer({ |
