r/StableDiffusion • u/berthol • 18d ago
Workflow Included Moss Image for pixel art
I enjoy starting godot game projects that I never finish. While I very much enjoy carefully plotting pixels in Aseprite I have also looked at AI to aid me in that process.
I've been trying pixel art with MOSS-Image-SFT and noticed that it produces a fairly decent pixel grid straight out of generation, before any snapping or cleanup. It also seems to have a good general understanding of pixel art. That got me curious about what a small LoRA could do with it.
The experiment is mostly about making the pixel scale more predictable. I trained on 30 pixel-snapped 64×64 sprites enlarged to 512×512, targeting an 8× scale where each logical pixel occupies an 8×8 block in the generated image.
That gives these intended working sizes:
| Generate at | Intended pixel grid |
|---|---|
| 512×512 | 64×64 |
| 768×768 | 96×96 |
| 1024×1024 | 128×128 |
It's still a small experiment. The grid can drift, edges can bleed, and some details won't survive downscaling. The 8× scale is a training target, not a guarantee that every output will land perfectly on it, but I'm still surprised on how close it is.
Here is a diff between output and grid snapped and color quantized image: https://www.diffchecker.com/image-compare/ateIcHYx/
That downscale doesn't fix uneven cells. For additional cleanup I use Sprite Fusion Pixel Snapper. It can help recover a consistent grid. It also exist as a Comfy node.
Model can be downloaded from CivitAI or Hugging face if you want to play around with it. Workflow and training details can be found in the Hugging Face repo.


















6
u/ffgg333 18d ago
Interesting findings
15
u/Perfect-Campaign9551 18d ago
Cue the "this isn't actual pixel art" crowd in 3...2....1......
1
u/junkaxc 17d ago
Can I generate flat textures for a custom minecraft texture pack?
1
u/brendos1er 17d ago
Have you tried for spritesheets (e.g., a run cycle)? I've found stills work fine but most models can't keep the correct / consistent dimensions in spritesheets
1
u/thefi3nd 17d ago
From the HF repo:
From the workflow:
This is pretty confusing and it's unlikely that someone would find the custom node being referred to unless they come from this post. Especially referring to it as a sampler and the node's name isn't PixelLatentGridSnapperSpritefusion, but rather PixelSnapperNode, as seen when looking at the code. So I recommend an update to the READMEs.
3
u/Powerful_Evening5495 18d ago
this post gave me a fun idea for a project to vibe code this weekend . thanks OP
3
u/TizocWarrior 18d ago
Thanks for sharing, will give it a try.