summaryrefslogtreecommitdiff
path: root/doc/CNN_V2_DEBUG_TOOLS.md
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-13 23:40:30 +0100
committerskal <pascal.massimino@gmail.com>2026-02-13 23:40:30 +0100
commit25044d63057cdb134cc3930bb67b178cff1aebb4 (patch)
treebf00411b0af159ef090dc9cffbd8c6dd793f1cff /doc/CNN_V2_DEBUG_TOOLS.md
parent87a27bf022d7fba68e3a945ee29c854c6e1ae2d7 (diff)
CNN v2: Fix Layer 0 visualization scale (was 0.5, now 1.0)
Layer 0 output is clamped [0,1], does not need 0.5 dimming. Middle layers (ReLU) keep 0.5 scale for values >1. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'doc/CNN_V2_DEBUG_TOOLS.md')
-rw-r--r--doc/CNN_V2_DEBUG_TOOLS.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/CNN_V2_DEBUG_TOOLS.md b/doc/CNN_V2_DEBUG_TOOLS.md
index 0185dac..b6dc65f 100644
--- a/doc/CNN_V2_DEBUG_TOOLS.md
+++ b/doc/CNN_V2_DEBUG_TOOLS.md
@@ -102,7 +102,17 @@ Load in HTML tool or cnn_test - output should match input (RGB only, ignoring st
## Known Issues
-**Current mismatch:** HTML tool and cnn_test produce different outputs for same input/weights.
+### ~~Layer 0 Visualization Scale~~ [FIXED]
+
+**Issue:** Layer 0 output displayed at 0.5× brightness (divided by 2).
+
+**Cause:** Line 1530 used `vizScale = 0.5` for all CNN layers, but Layer 0 is clamped [0,1] and doesn't need dimming.
+
+**Fix:** Use scale 1.0 for Layer 0 output (layerIdx=1), 0.5 only for middle layers (ReLU, unbounded).
+
+### Remaining Mismatch
+
+**Current:** HTML tool and cnn_test produce different outputs for same input/weights.
**Suspects:**
1. F16 unpacking difference (CPU vs GPU vs JS)