feat: transparent-background MNIST (alpha renderer + exporter) #25

Merged
dsh merged 1 commit from feat/alpha-mnist into master 2026-11-21 13:01:19 +00:00
Member

0.1 eyecatcher: digits on a transparent background.

Key insight: MNIST is white ink on black, so grayscale intensity is the alpha mask. The existing RAT-16 checkpoint is already an alpha model — no retraining, no edited dataset.

  • wsample --alpha renders white ink on RGBA and writes a checkerboard preview.
  • docs/scripts/mnist_to_alpha.py exports the real MNIST split as RGBA PNGs (no GIMP).
  • src/wink/modules/alpha.py + tests; pillow moves to core deps so alpha works without the eval extra.
  • Docs/finding, README 0.1 section, CHANGELOG, generated and real-data previews.

Generated: docs/assets/mnist/alpha_digits_preview.png; real data: docs/assets/mnist/mnist_alpha_real_100.png. 37 tests pass. The JS toy remains the next 0.1 item (#24); RGBA colour+alpha is still #20.

0.1 eyecatcher: digits on a transparent background. Key insight: MNIST is white ink on black, so grayscale intensity **is** the alpha mask. The existing RAT-16 checkpoint is already an alpha model — no retraining, no edited dataset. - `wsample --alpha` renders white ink on RGBA and writes a checkerboard preview. - `docs/scripts/mnist_to_alpha.py` exports the real MNIST split as RGBA PNGs (no GIMP). - `src/wink/modules/alpha.py` + tests; pillow moves to core deps so alpha works without the eval extra. - Docs/finding, README 0.1 section, CHANGELOG, generated and real-data previews. Generated: `docs/assets/mnist/alpha_digits_preview.png`; real data: `docs/assets/mnist/mnist_alpha_real_100.png`. 37 tests pass. The JS toy remains the next 0.1 item (#24); RGBA colour+alpha is still #20.
- MNIST intensity is the alpha mask; no retrain/dataset edit needed
- wsample --alpha renders white ink on RGBA + checkerboard preview
- docs/scripts/mnist_to_alpha.py exports real splits as RGBA PNGs
- alpha module/tests, pillow as a core dep
- docs/finding, README 0.1 section, CHANGELOG, assets
dsh merged commit 18006a0367 into master 2026-11-21 13:01:19 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ml-lab/wink!25
No description provided.