LiliPixel-V1
A compact model for pixel art and sprite generation
2 min readupdated
LiliPixel-V1 is a diffusion transformer model (DiT) with 191 million parameters, trained from scratch to generate pixel art and sprites at native resolutions of 16x16, 32x32, and 64x64 pixels. The model uses the Voyage-4-nano text encoder and supports transparent backgrounds for low resolutions, as well as a realistic graphics mode for 64x64. Thanks to its modest size, it requires only about 1 GB of VRAM to run in BF16 format. The tool is well-suited for game developers and pixel art enthusiasts for quick asset generation.
Key features
- Trained from scratch on pixel art datasets with support for 16x16, 32x32, and 64x64 resolutions
- Low system requirements: only about 1 GB of VRAM for fast generation
- Support for transparent backgrounds (RGBA) for 16x16 and 32x32 resolutions
- Built-in photorealism mode for 64x64 resolutions using a special prompt
What you can do
- Generate character sprites and item icons with transparent backgrounds for indie games
- Create small pixel art landscapes and scenes at 64x64 resolution
- Quickly experiment with prompts to get collections of textures and icons
Example
import torch
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained(
"Pinkstack/LiliPixel-V1-190M",
custom_pipeline="Pinkstack/LiliPixel-V1-190M",
trust_remote_code=True,
torch_dtype=torch.bfloat16,
).to("cuda")
image = pipe(
prompt="cute border collie dog with a purple colar, transparent background",
height=32, width=32,
num_inference_steps=30,
guidance_scale=3.0,
generator=torch.Generator("cuda").manual_seed(96),
).images[0]
image.save("LiliPixel-image.png")Read more
DetailsModel: 191M parameters, DiT architecture (24 layers, width 768, 16 heads)
Requirements: ~1 GB VRAM, BF16 inference support
Training: 132,000 steps on a single RTX 4080 (126 GPU hours)
Limitations: complex scenes and a large number of objects in low resolution may turn out unclear, generating multiple variations is recommended










Comments