From c7ea4123efa2457e17a9894bba645914c065a190 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 14 Feb 2026 00:48:57 +0100 Subject: gen_identity_weights: Add --p47 option for static feature visualization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds --p47 flag to output static features directly: - p4 → ch0 (UV.x) - p5 → ch1 (UV.y) - p6 → ch2 (sin encoding) - p7 → ch3 (bias) Useful for visualizing static feature generation without input RGBA. Updated doc/CNN_V2_DEBUG_TOOLS.md with --p47 usage. Co-Authored-By: Claude Sonnet 4.5 --- doc/CNN_V2_DEBUG_TOOLS.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/CNN_V2_DEBUG_TOOLS.md') diff --git a/doc/CNN_V2_DEBUG_TOOLS.md b/doc/CNN_V2_DEBUG_TOOLS.md index 25e5205..dfea63e 100644 --- a/doc/CNN_V2_DEBUG_TOOLS.md +++ b/doc/CNN_V2_DEBUG_TOOLS.md @@ -21,6 +21,9 @@ Tools for investigating CNN v2 mismatch between HTML tool and cnn_test. # Mix mode: p0+p4, p1+p5, p2+p6, p3+p7 ./training/gen_identity_weights.py output.bin --mix +# Static features only: p4→ch0, p5→ch1, p6→ch2, p7→ch3 +./training/gen_identity_weights.py output.bin --p47 + # Custom mip level ./training/gen_identity_weights.py output.bin --kernel-size 1 --mip-level 2 ``` @@ -29,6 +32,7 @@ Tools for investigating CNN v2 mismatch between HTML tool and cnn_test. - Single layer, 12D→4D (4 input channels + 8 static features) - Identity mode: Output Ch{0,1,2,3} = Input Ch{0,1,2,3} - Mix mode (--mix): Output Ch{i} = Input Ch{i} + Input Ch{i+4} (blends input with static features) +- Static mode (--p47): Output Ch{i} = Input Ch{i+4} (static features only, visualizes p4-p7) - Minimal file size (~136 bytes for 1×1, ~904 bytes for 3×3) **Validation:** -- cgit v1.2.3