File size: 1,560 Bytes
613334c
4f47eb1
 
7091daa
 
 
 
 
 
 
 
4f47eb1
 
 
 
 
7091daa
613334c
 
4f47eb1
 
7091daa
 
4f47eb1
7091daa
 
 
 
 
 
4f47eb1
7091daa
 
4f47eb1
7091daa
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
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.