Downloads · 30 days
0
irotem98/Codex-Pets-Sprite-Sheet-Generator
Codex-Pets-Sprite-Sheet-Generator is a image-to-image model from irotem98. Use it when you need one image transformed into another. It is set up for diffusers. The card lists the license as apache-2.0.
Give the model one transparent character image and it creates a complete V2 sprite sheet with 11 animation rows. The included script handles image preparation, all 11 diffusion calls, row packing, final assembly, and…
Downloads · 30 days
0
Access
Public
Updated Aug 26, 2026
Repo size
381 MB
Likes
0
Public
Click a slice to open those files.
.safetensors369 MB · 99%
From the Hugging Face model README
Give the model one transparent character image and it creates a complete V2 sprite sheet with 11 animation rows. The included script handles image preparation, all 11 diffusion calls, row packing, final assembly, and binary alpha cleanup.
It is built around the V2 animation layout used by Codex Pets.
Created using the
irotem98/codex-pets-sprite-sheets
training dataset.
![]()
The example above was generated from only Jigglypuff's initial image.
git clone https://huggingface.co/irotem98/Codex-Pets-Sprite-Sheet-Generator
cd Codex-Pets-Sprite-Sheet-Generator
pip install -r requirements.txt
python generate_sprite_sheet.py character.png --output full-sprite-sheet.png
That is the complete inference command. On first use, the script automatically downloads the original Boogu/Boogu-Image-0.1-Edit base model. A transparent PNG containing one centered character works best.
Generation uses a row batch size of 1 by default. If your GPU has additional memory, increase it with --row-batch-size 2, 4, or up to 11 to generate multiple animation rows together. The underlying model is 10B parameters, so a CUDA GPU with substantial VRAM is recommended.
The output is a 1536 × 2288 RGBA PNG: eight columns, eleven rows, and 192 × 208 pixels per sprite cell.
| Row | Animation | Frames |
|---|---|---|
| 1 | idle | 6 |
| 2 | run right | 8 |
| 3 | run left | 8 |
| 4 | wave | 4 |
| 5 | jump | 5 |
| 6 | failed | 8 |
| 7 | waiting | 6 |
| 8 | running | 6 |
| 9 | review | 6 |
| 10 | look directions 1–8 | 8 |
| 11 | look directions 9–16 | 8 |
Unused cells at the end of shorter rows remain transparent.
This release uses a two-stage fine-tuning pipeline.
The original Boogu VAE accepts and reconstructs RGB. It was expanded to RGBA while preserving the pretrained RGB path:
AutoencoderKLThe released VAE is checkpoint 2,000, trained on 3,015 sprite sheets from irotem98/codex-pets-sprite-sheets, represented as 27,691 training rows and 540 validation rows. It is stored under vae/ and can be loaded directly with Diffusers.
The RGBA VAE and Qwen3-VL instruction encoder were frozen. A rank-8 LoRA was trained on the Boogu diffusion transformer's to_q, to_k, to_v, and to_out.0 attention projections.
For every animation row:
The released LoRA is checkpoint 21,000 and is stored under lora/. The diffusion objective was flow matching. During training, ordinary 50-step diffusion samples were logged every 50 optimizer steps.
generate_sprite_sheet.py performs the full workflow:
192 × 208 cell without cropping visible pixels.vae/ — deployable four-channel alpha-compatible VAElora/ — rank-8 Boogu Image Edit sprite-sheet adaptergenerate_sprite_sheet.py — one-image to full-sheet commandsprite_sheet_config.json — dimensions, row names, frame counts, and inference defaultsboogu/ — the Apache-2.0 Boogu inference modules needed by the scriptThis is a fine-tune of Boogu/Boogu-Image-0.1-Edit. The base model and included Boogu inference code are Apache-2.0 licensed. Review the upstream model card for its responsible-use guidance and broader limitations.