A LoRA adapter trained on FLUX.2-klein-4B for generating pixel art character sprites. Optimized for game-ready assets with transparent backgrounds.
1import torch
2from diffusers import Flux2KleinPipeline
3
4# Load base model + LoRA
5pipe = Flux2KleinPipeline.from_pretrained(
6 "black-forest-labs/FLUX.2-klein-4B",
7 torch_dtype=torch.bfloat16,
8 low_cpu_mem_usage=False,
9)
10pipe.load_lora_weights("Limbicnation/pixel-art-lora")
11pipe.to("cuda")
12
13image = pipe(
14 "pixel art sprite, a brave knight in shining armor, game asset, transparent background",
15 num_inference_steps=4,
16 guidance_scale=1.0,
17 height=512,
18 width=512,
19).images[0]
20
21image.save("knight.png")
A sample workflow is included:
comfyui_workflow.json
This model was trained with full data provenance tracking. All source images are CC0 public domain, making the outputs safe for commercial game development, Steam releases, and B2B studio use.
This LoRA adapter is released under
Apache 2.0.
The base model (FLUX.2-klein-4B) is also Apache 2.0 licensed.
1@misc{pixel-art-lora-2026,
2 title={Pixel Art Sprite LoRA for FLUX.2-klein-4B},
3 author={Limbicnation},
4 year={2026},
5 url={https://huggingface.co/Limbicnation/pixel-art-lora}
6}