--- title: Trout Pixel Studio emoji: 🐟 colorFrom: blue colorTo: green sdk: gradio sdk_version: 5.49.1 app_file: app.py pinned: true license: cc-by-nc-4.0 short_description: Trout text-to-pixel-art demo (47.6M masked-diffusion) tags: - pixel-art - text-to-image - masked-diffusion - discrete-diffusion - from-scratch --- # 🐟 Trout Pixel Studio **Trout** is a from-scratch **47.6M-parameter** joint text+pixel bidirectional masked-diffusion transformer that generates **16×16 pixel-art sprites** from text prompts: - every sprite is a 256-token "sentence" over a learned **512-colour palette** (token 0 = transparent) - a frozen **CLIP ViT-B/32** text encoder conditions an hourglass (2 + 8 + 2) transformer with 2D axial RoPE, QK-RMSNorm, Conv-SwiGLU, adaLN-single modulation, registers and self-conditioning - the sampler unmasks all pixels **in parallel** with confidence ordering + spatial NMS + CFG - trained from scratch (random init, own palette, own code) on [Pixel Art Atlas 1.4M](https://huggingface.co/datasets/Angais/pixel-art-atlas-1.4m) The model weights are loaded from [FrameXlabs/Trout](https://huggingface.co/FrameXlabs/Trout) and **run right here in this Space on CPU** — every sprite you see is generated live by the model. **This checkpoint is intentionally undertrained** (1,000 steps on a shared CPU, per the request that produced it): it produces plausible palette use, silhouettes and colour blobs rather than crisp objects. Increasing *Sampling steps* and *CFG scale* sharpens what structure it has learned.