A pixel art spritesheet LoRA for small 32x32 characters, with animation frames for walking up/down/left/right, standing with both arms raised, jumping left/right, and lying on the floor.
How to use
You can use the default FLUX.2 Klein base 4B workflows from ComfyUI. Both the text-to-image workflow and the edit base workflow work.
Images should be 512x512 because that's the size of the spritesheets used in training.
Does this LoRA work with FLUX.2 Klein 4B distilled?
No. It's technically compatible, but the distilled model ruins the quality of the pixels and the consistency. Use the base model.
How to get pixel-perfect images
To get pixel-perfect images, downscale by a factor of 4. So 512x512 images should downscale to 128x128. Using k-centroid scaling works well.
Testing the spritesheets in a game
If you want to quickly test your spritesheets in a 2D game, here's a simple "sandbox" game/tool where you can upload the raw spritesheet outputs and spawn in your characters to move around:
Link to tool here
Source code here
Credits
The dataset used to train this LoRA consists of spritesheets edited and based on a template spritesheet by George Bailey, licensed under CC BY 4.0

