diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-11 16:41:27 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-11 16:41:27 +0100 |
| commit | f71e4b6c3ae7c2b5a0c71fa6b379c44b5d527874 (patch) | |
| tree | 8cedd4592442ca1019a67c0d95f5313a6c371492 /doc/archive/SHADER_PARAMETRIZATION_PLAN.md | |
| parent | 09eba6004eb5faa5273e310ca560bfd41e1bc901 (diff) | |
fix: Compute gray from [0,1] RGB in CNN shader generator
Match training forward pass: compute grayscale from original [0,1] RGB
before normalization, then normalize gray to [-1,1].
Previously computed gray from normalized [-1,1] RGB in generated shader,
creating mismatch with train.py which does:
gray = 0.2126*R + 0.7152*G + 0.0722*B # [0,1]
gray = (gray - 0.5) * 2.0 # [-1,1]
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'doc/archive/SHADER_PARAMETRIZATION_PLAN.md')
0 files changed, 0 insertions, 0 deletions
