How to use M5-Dev/MikuPix2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("M5-Dev/MikuPix2") prompt = "MikuPix2, Hatsune Miku doing chest press yoga pose on balcony mat at sunrise, loose sports bra pulled down under large breasts covered by hair and ribbon tie, back arched pressing chest forward, cute focused moan blush + wink at viewer, twin-tails flowing in breeze, thigh-high leggings, golden light on skin, ultra-sexy ultra-flexible anime, 8k" image = pipe(prompt).images[0]