diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-14 00:47:01 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-14 00:47:01 +0100 |
| commit | 54a0d834dc942ae051d28623a522c72fedf68f1c (patch) | |
| tree | 370373bebb69b254ba8c5a66d098f88297d216ad /doc | |
| parent | 8b8b041f2b3437945c173b675d5daa08498f08dc (diff) | |
gen_identity_weights: Add --mix option for static feature blending
Adds --mix flag to blend input channels with static features:
- p0+p4 → p0 (RGBA + UV.x)
- p1+p5 → p1 (RGBA + UV.y)
- p2+p6 → p2 (RGBA + sin encoding)
- p3+p7 → p3 (RGBA + bias)
Useful for debugging static feature contribution in CNN v2.
Updated doc/CNN_V2_DEBUG_TOOLS.md with --mix usage examples.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/CNN_V2_DEBUG_TOOLS.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/CNN_V2_DEBUG_TOOLS.md b/doc/CNN_V2_DEBUG_TOOLS.md index b6dc65f..25e5205 100644 --- a/doc/CNN_V2_DEBUG_TOOLS.md +++ b/doc/CNN_V2_DEBUG_TOOLS.md @@ -18,14 +18,17 @@ Tools for investigating CNN v2 mismatch between HTML tool and cnn_test. # 3×3 identity ./training/gen_identity_weights.py workspaces/main/weights/cnn_v2_identity_3x3.bin --kernel-size 3 +# Mix mode: p0+p4, p1+p5, p2+p6, p3+p7 +./training/gen_identity_weights.py output.bin --mix + # Custom mip level ./training/gen_identity_weights.py output.bin --kernel-size 1 --mip-level 2 ``` **Output:** - Single layer, 12D→4D (4 input channels + 8 static features) -- Identity matrix: Output Ch{0,1,2,3} = Input Ch{0,1,2,3} -- Static features (Ch 4-11) are zeroed +- 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) - Minimal file size (~136 bytes for 1×1, ~904 bytes for 3×3) **Validation:** |
