From 8b8b041f2b3437945c173b675d5daa08498f08dc Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 14 Feb 2026 00:37:02 +0100 Subject: 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 --- tools/cnn_v2_test/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3