A LoRA trained on FLUX.2-klein-base-9B for generating game sprite sheets in the style of LPC (Liberated Pixel Cup) assets.
1import torch
2from diffusers import DiffusionPipeline
3
4# Load base model
5pipe = DiffusionPipeline.from_pretrained(
6 "black-forest-labs/FLUX.2-klein-base-9B",
7 torch_dtype=torch.bfloat16
8)
9pipe.to("cuda")
10
11# Load LoRA
12pipe.load_lora_weights("Mystic07/flux-lora-spritesheet", weight_name="gmsspritesheet1.safetensors")
13
14# Generate
15prompt = "gmsspritesheet, 4 direction sprite sheet, warrior character, walk cycle animation, pixel art"
16image = pipe(
17 prompt=prompt,
18 num_inference_steps=30,
19 guidance_scale=4.0,
20 width=1024,
21 height=1024
22).images[0]
23
24image.save("sprite_sheet.png")
gmsspritesheet, 4 direction sprite sheet, warrior character, walk cycle animation, pixel art
gmsspritesheet, sprite sheet, mage character, spell casting animation, top-down view
gmsspritesheet, 4 direction sprite sheet, archer character, shooting bow, pixel art style
gmsspritesheet, character sprite sheet, knight in armor, idle and attack animations
gmsspritesheet, sprite sheet, rogue character, stealth movement, multiple poses
This LoRA inherits the license from FLUX.2-klein-base-9B. Please see the
base model license for usage terms.
Mystic07/flux-lora-spritesheet
Trained on FLUX.2-klein-base-9B by Black Forest Labs