Spaces:
Paused
Paused
Add README.md
Browse files
README.md
CHANGED
|
@@ -1,39 +1,37 @@
|
|
| 1 |
---
|
| 2 |
title: Trout Pixel Studio
|
| 3 |
emoji: π
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
| 9 |
tags:
|
| 10 |
- pixel-art
|
| 11 |
- text-to-image
|
| 12 |
- masked-diffusion
|
| 13 |
- discrete-diffusion
|
| 14 |
-
-
|
| 15 |
-
short_description: 16x16 pixel-art sprites from text (47.6M model)
|
| 16 |
---
|
| 17 |
|
| 18 |
# π Trout Pixel Studio
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 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 |
-
|
| 28 |
-
|
| 29 |
-
2D axial RoPE, Conv-SwiGLU, adaLN-single, registers
|
| 30 |
-
**in parallel
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 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 |
-
**
|
| 39 |
-
|
|
|
|
|
|
| 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.
|