Diffusers How to use AiAF/D-ART_Z-Image-Turbo_LoRA with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("Tongyi-MAI/Z-Image-Turbo", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("AiAF/D-ART_Z-Image-Turbo_LoRA")
prompt = "D-ART, D-ART Style, @18dart5, 18dart3, 18dart2, 18DART1, !!, ??, a confident, curvy young woman with fair skin and pink braided hair. She has a small, pointed nose, and a subtle smile, looking over her shoulder with a flirtatious expression. She is dressed in a white long-sleeve shirt, tight gray pants that accentuate her large, round buttocks, and brown shoes. Her arms are crossed under her chest, which is modest in size. The background is a dark purple with diagonal white stripes and small heart and star doodles, adding a playful touch. The image has a soft, slightly shaded style with smooth textures."
image = pipe(prompt).images[0]