RD Flow 64 Draws Real 64x64 Pixel Art From a 271M Model

ComfyUI Wikinews

RD Flow 64 is a 271M text-to-image model that paints on the 64x64 grid with its own palette, and the same repo doubles as a ComfyUI node pack.

RD Flow 64 is a 271M model from Retro Diffusion that draws 64 x 64 pixel art directly, one palette-indexed pixel at a time, instead of shrinking a big image. It runs on a 2 GB GPU, and the repo is also a ComfyUI node pack.
Twenty-one RD Flow 64 outputs: transparent sprites and full-frame scenes

Twenty-one outputs, each a real 64 x 64 image shown at 4x. Source: Retro Diffusion

What it draws

Every image arrives with its own palette, about 37 colours on average, which you can lock with a hex list or a .hex, .gpl or .pal file. Sprites come out with real transparency; ask for a full-frame picture instead and you get one.

It is aimed at single subjects and small scenes: items, characters, props, buildings, icons, little landscapes. Text and lettering are out of reach, and crowded scenes lose detail.

A dragon spriteA wizard cat spriteA robot sprite
dragonwizard-catrobot

Run it in ComfyUI

The GitHub repo is both the inference code and the node pack:

cd ComfyUI/custom_nodes
git clone https://github.com/Retro-Diffusion/rd-flow-64
pip install -r rd-flow-64/requirements.txt

Restart ComfyUI and the nodes show up under RD Flow 64. The first run downloads the 542 MB drawing model and its prompt reader from Hugging Face.

NodeDoes
RD Flow 64 LoaderLoads the model and prompt reader, with device and precision options
RD Flow 64 GenerateCaption to 64 x 64 images: image, mask, palette, and rgba for a transparent PNG
RD Flow 64 Caption WriterTurns a short idea into the long caption the model wants, via any OpenAI-compatible LLM
RD Flow 64 System Prompt / Clean CaptionThe system prompt and clean-up, for wiring into your own LLM node

Set scale to 1 on the Generate node when you want the actual 64 x 64 pixels, for example before saving sprites. The default 8 is a nearest-neighbour zoom for looking at them.

Captions do the heavy lifting

The model was trained on 120 to 200 word plain descriptions, and it draws much better from a caption written that way than from red potion. The Caption Writer node covers this with a local Ollama model, LM Studio or OpenRouter; the CLI has the same thing behind --expand.

Speed and weight

  • Size. 271M parameters in one 542 MB file. About 44x smaller than FLUX.1 and 74x smaller than Qwen-Image.
  • Speed. An RTX 4090 draws 4 images in 0.7 s. A 2 GB GPU takes under a second with the prompt read on the CPU.
  • Small machines. An 8 GB M2 Mac mini takes 25 s on the GPU or 67 s on the CPU for 4 images, peaking at 3.3 GB of RAM.
  • Fixed resolution. 64 x 64 only. Anything larger is an upscale, and this is not the model for that.

Comments

Sign in with GitHub to join the discussion.

Loading comments…
RD Flow 64 Draws Real 64x64 Pixel Art From a 271M Model | ComfyUI Wiki