FrameXlabs commited on
Commit
7091daa
Β·
verified Β·
1 Parent(s): 6e0aba1

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -24
README.md CHANGED
@@ -1,39 +1,37 @@
1
  ---
2
  title: Trout Pixel Studio
3
  emoji: 🐟
4
- colorFrom: indigo
5
- colorTo: blue
6
- sdk: static
7
- pinned: false
8
- license: apache-2.0
 
 
 
9
  tags:
10
  - pixel-art
11
  - text-to-image
12
  - masked-diffusion
13
  - discrete-diffusion
14
- - diffusion-lm
15
- short_description: 16x16 pixel-art sprites from text (47.6M model)
16
  ---
17
 
18
  # 🐟 Trout Pixel Studio
19
 
20
- Static showcase for **[Trout](https://huggingface.co/FrameXlabs/Trout)** β€” a 47.6M-parameter
21
- **absorbing-state masked diffusion language model** for 16Γ—16 pixel art, built and trained
22
- **from scratch** (architecture after
23
- [Tessera-small](https://huggingface.co/thejagstudio/tessera-small) by Jagrat Patel
24
- (TheJagStudio), trained on [Pixel Art Atlas 1.4M](https://huggingface.co/datasets/Angais/pixel-art-atlas-1.4m),
25
- CC0, conditioned on a frozen CLIP ViT-B/32 text tower).
26
 
27
- Each sprite is a 256-token "sentence" over a learned **512-color palette** (token 0 =
28
- transparent). A bidirectional hourglass transformer (width 512, 2+8+2 blocks, QK-RMSNorm,
29
- 2D axial RoPE, Conv-SwiGLU, adaLN-single, registers, self-conditioning) unmasks pixels
30
- **in parallel over ~16 steps**. No VAE, no latent space, no autoregression.
 
 
31
 
32
- **Why static?** Hugging Face currently requires a PRO subscription to host *Gradio*
33
- Spaces on free cpu-basic hardware, so this Space is a free static page. A complete,
34
- tested interactive **Gradio demo is included in this repo** (`app.py`, `trout.py`,
35
- `requirements.txt`): switching this Space's SDK to `gradio` (with `app_file: app.py`)
36
- makes the live demo run unchanged, or run it locally with `python app.py`.
37
 
38
- **License:** Apache-2.0 (Trout weights + this page). The CLIP text tower used for
39
- conditioning keeps its own MIT license.
 
 
1
  ---
2
  title: Trout Pixel Studio
3
  emoji: 🐟
4
+ colorFrom: blue
5
+ colorTo: green
6
+ sdk: gradio
7
+ sdk_version: 5.49.1
8
+ app_file: app.py
9
+ pinned: true
10
+ license: cc-by-nc-4.0
11
+ short_description: Trout text-to-pixel-art demo (47.6M masked-diffusion)
12
  tags:
13
  - pixel-art
14
  - text-to-image
15
  - masked-diffusion
16
  - discrete-diffusion
17
+ - from-scratch
 
18
  ---
19
 
20
  # 🐟 Trout Pixel Studio
21
 
22
+ **Trout** is a from-scratch **47.6M-parameter** joint text+pixel bidirectional masked-diffusion
23
+ transformer that generates **16Γ—16 pixel-art sprites** from text prompts:
 
 
 
 
24
 
25
+ - every sprite is a 256-token "sentence" over a learned **512-colour palette** (token 0 = transparent)
26
+ - a frozen **CLIP ViT-B/32** text encoder conditions an hourglass (2 + 8 + 2) transformer with
27
+ 2D axial RoPE, QK-RMSNorm, Conv-SwiGLU, adaLN-single modulation, registers and self-conditioning
28
+ - the sampler unmasks all pixels **in parallel** with confidence ordering + spatial NMS + CFG
29
+ - trained from scratch (random init, own palette, own code) on
30
+ [Pixel Art Atlas 1.4M](https://huggingface.co/datasets/Angais/pixel-art-atlas-1.4m)
31
 
32
+ The model weights are loaded from [FrameXlabs/Trout](https://huggingface.co/FrameXlabs/Trout) and
33
+ **run right here in this Space on CPU** β€” every sprite you see is generated live by the model.
 
 
 
34
 
35
+ **This checkpoint is intentionally undertrained** (1,000 steps on a shared CPU, per the request that
36
+ produced it): it produces plausible palette use, silhouettes and colour blobs rather than crisp
37
+ objects. Increasing *Sampling steps* and *CFG scale* sharpens what structure it has learned.