summaryrefslogtreecommitdiff
path: root/third_party/stb_image.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-11 16:41:27 +0100
committerskal <pascal.massimino@gmail.com>2026-02-11 16:41:27 +0100
commitf71e4b6c3ae7c2b5a0c71fa6b379c44b5d527874 (patch)
tree8cedd4592442ca1019a67c0d95f5313a6c371492 /third_party/stb_image.h
parent09eba6004eb5faa5273e310ca560bfd41e1bc901 (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 'third_party/stb_image.h')
0 files changed, 0 insertions, 0 deletions