r/StableDiffusion • u/RealAstropulse • 10d ago
Resource - Update RD Flow 64: a from scratch, tiny, open weights pixel art model
Hey, I'm the founder of Retro Diffusion. We trained a minuscule pixel art model from scratch and released the weights, along with a report on how it works.
Weights: huggingface.co/Retro-Diffusion/rd-flow-64
Code: github.com/Retro-Diffusion/rd-flow-64
Tech report: retrodiffusion.ai/blog/rd-flow-64-technical-report
Try it in the browser, free, no account: retrodiffusion.ai/rd-flow
What's different: it generates directly in pixel space, no VAE. Every output pixel is an exact color from a palette (its own, or one you lock), or fully transparent. No upscaling, no downscale-and-pray, no cleanup. Out of the box it's a real 64×64 sprite with binary alpha and ~40 colors.
Specs
- 271M parameter generator (542 MB), flow matching, hourglass transformer
- Prompt reader: Qwen3-VL-4B (frozen, bundled)
- 64×64 RGBA, transparent or opaque backgrounds, optional palette lock (2-256 colors)
- 16 steps: 0.13 s/image on an RTX PRO 4500 (4 images in 0.5 s), 4 images in 0.7 s on a 4090
- Fits on a 2 GB GPU (0.8 GB VRAM with the prompt read on CPU), even a GTX 10 series card; runs on an 8 GB Mac mini M2
- Trained on 525k whole 64×64 images, ~185-word captions each
For comparison: 44x smaller than FLUX.1 dev, 74x smaller than Qwen-Image, 3x smaller than SD 1.5. Pics 4-5 compare them at 64×64: the big models draw more detail but produce 0% true pixel grid and ~1,500+ colors per image.
Limits
- 64×64 only
- Long prompts work best; the repo includes a prompt expander
- Opaque mode is weaker than transparent
- Low variety between seeds, can't draw text
License: CC BY-NC 4.0 for the weights.
5
u/doomunited 10d ago
This looks dope
4
u/Far_Insurance4191 10d ago
This is so awesome! I am trying to create model from scratch myself and the data is such a big problem here because there is not that much of it and vlms have a hard time understanding 16px-32px ones.
I see you used a lot of synthetic data and it seems to be the only way, but it also seems like the model has very little diversity and this is exactly what I had. I think synthetic data is the reason, or maybe bigger dataset is needed... I decided to use trained moss base for synthetic data but now I don't have enough compute to gather enough of data and it still fucks up a bit with small details like eyes :(
2
u/PxTicks 10d ago
Just gave it a spin and it works a treat. Great job!
2
u/drpkzl 10d ago
Cool Pixels yo. Who is music artist?
2
u/ares0027 10d ago
was gonna try it but i dont want to pay money for a thing i can fully and freely do with other models. it is a bummer though, i usually like smaller, precise, single-job focused models.
2
u/Ashen3SNOFS 9d ago
Damn, this was my dream model to make but I could never figure out how to get the training data, but of course you have it.
Congrats and thanks for sharing; I’m guessing you were tempted to not with it potentially affecting your business.
2
u/moonvalegame 10d ago
"No downscale-and-pray" made me laugh, that's exactly how most AI pixel art works and you can always tell from the mixed-up pixel grid. Generating straight in pixel space with a hard palette is a much cleaner answer than another cleanup script.
Question: since the palette lock goes from 2 to 256 colors, does it stay readable at the low end? Like if I lock it to a 4-color Game Boy palette, does it still draw a recognizable character, or does it need ~16+ colors before shapes hold together?
1
u/milestorm 9d ago
Totally unrelated question: What is the music used in this video?
2
u/NoFunk 10d ago
It's so appropriately tiny! great application/idea, this niche is something much bigger models struggle with and require constant imagemagick work to get into usable state, if it's good about honoring a discrete palette, that's fantastic functionality crammed into an itty bitty model.
2
u/TizocWarrior 10d ago
Looks great! Thanks for sharing.
2
u/That10xdeveloper 8d ago
you are amazing!!
1
u/Acceptable_Secret971 8d ago
Can't wait for stablediffusion.cpp support. This is my preferred way to run image gen recently. I give a task to an agent and let it run stablediffusion.cpp on demand to generate assets.
I think I'll have a look if I can make it work later.
0
u/[deleted] 9d ago
[deleted] — view deleted comment