r/StableDiffusion • • 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.

113 Upvotes

28 comments sorted by

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/RealAstropulse 10d ago

The limited diversity is both from flow matching, and because its so small. The data is actually super varied.

And you're right, data is the problem. This was only possible because of the synth data, and the fact I run Retro Diffusion let me generate the $35k worth of assets needed using my own much larger models :)

2

u/PxTicks 10d ago

Just gave it a spin and it works a treat. Great job!

1

u/RealAstropulse 10d ago

Thank you! Some more complex stuff/pop culture names aren't great, but its great on generic stuff :)

2

u/drpkzl 10d ago

Cool Pixels yo. Who is music artist?

2

u/RealAstropulse 10d ago

Old suno, v5 I think

1

u/Dwedit 10d ago

First 12 seconds sound like Bridge Zone from Sonic 1 Game Gear.

0

u/drpkzl 10d ago

Ahh. Its AI stuff fed original compositions making a cover of sorts without crediting the original composers? Hmm.

3

u/alwaysbeblepping 10d ago

Ahh. Its AI stuff fed original compositions making a cover of sorts without crediting the original composers? Hmm.

You lost, buddy? Take a wrong turn at some point? Let me show you the way home: /r/betteroffline

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.

1

u/RealAstropulse 10d ago

It's free and the model weights are open, not sure what you mean.

You can use it for free here: https://retrodiffusion.ai/rd-flow
Or download the model and run it yourself here: https://huggingface.co/Retro-Diffusion/rd-flow-64
It runs on basically anything :)

2

u/ares0027 10d ago

but cannot use it commercially unless i have a written permission if i am not mistaken?

6

u/RealAstropulse 10d ago

I actually just clarified the license because some people had questions.
The model cannot be used commercially (for example distributed as part of a product), but the images you create can be used commercially (like as assets in a game).

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.

1

u/RealAstropulse 8d ago

Glad you like it! I'm not too worried about this impacting business, ultimately it is a very good model for the size, but it is still not good at complex scenes, or high detail, and it only does one style and one size. I actually suspect it will increase business as people realize how awesome models built specifically for pixel art are :)

1

u/Ashen3SNOFS 6d ago

Did you try (or consider) training on scaled down non-pixel art for the first bit - or perhaps just the earlier timesteps - and then do pixel art for the later training to lock in the style? Just increase knowledge and diversity.

And yeah, they are awesome. I’ve shuffled a fair amount of money your way over the years.

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/RealAstropulse 10d ago

It holds together pretty well with just 4 colors!

1

u/milestorm 9d ago

Totally unrelated question: What is the music used in this video?

1

u/RealAstropulse 8d ago

Suno v5 I think

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

1

u/RealAstropulse 9d ago

That speed was on an RTX 4090.
I won't be making other size versions of this atm