summaryrefslogtreecommitdiff
path: root/tools/spectral_editor/BEFORE_AFTER.md
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-11 10:07:58 +0100
committerskal <pascal.massimino@gmail.com>2026-02-11 10:07:58 +0100
commitd56de04a4b1f19b9fa73e6f7f9c7a5a0eadd6dd3 (patch)
treec5a91b8bb490ae6d9464cb5c7cc0e9306cb2be36 /tools/spectral_editor/BEFORE_AFTER.md
parent3e7d0ee97426cfe89938432781d71f6db94fdb07 (diff)
fix: Replace clamp with sigmoid in CNN final layer
Final layer used hard clamp causing saturation to white when output > 1.0. Replaced with sigmoid activation for smooth [0,1] mapping with gradients. Changes: - train_cnn.py: torch.sigmoid() in forward pass and WGSL codegen - WGSL shaders: 1.0/(1.0+exp(-sum)) in cnn_conv3x3/5x5 _7to1 functions Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'tools/spectral_editor/BEFORE_AFTER.md')
0 files changed, 0 insertions, 0 deletions