diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-14 00:37:02 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-14 00:37:02 +0100 |
| commit | 8b8b041f2b3437945c173b675d5daa08498f08dc (patch) | |
| tree | a47d8d98069bfba9f53825c6b7536a23671f75c5 | |
| parent | f7c5c19af1b4638958c6875c6f691b2c9aa05a94 (diff) | |
CNN v2 tool: Fix off-by-one in composited layer filenames
currentLayerIdx indexes layerOutputs array (0=Static Features, 1=Layer 0).
Filename should use layer number, not array index.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
| -rw-r--r-- | tools/cnn_v2_test/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cnn_v2_test/index.html b/tools/cnn_v2_test/index.html index dd1e42b..622eecc 100644 --- a/tools/cnn_v2_test/index.html +++ b/tools/cnn_v2_test/index.html @@ -1884,7 +1884,7 @@ class CNNTester { const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; - a.download = `composited_layer${this.currentLayerIdx}_${compositedWidth}x${height}.png`; + a.download = `composited_layer${this.currentLayerIdx - 1}_${compositedWidth}x${height}.png`; a.click(); URL.revokeObjectURL(url); |
