Diffusers How to use glif/Gesture-Draw with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("glif/Gesture-Draw")
prompt = "gstdrw style, figure mid dance, A dynamic gesture drawing featuring a figure mid-dance, rendered with confident yet delicate lines in fine charcoal on lightly textured, warm-gray paper. The strokes capture the fluid movement and expressive energy of the dancer, focusing on the essential gesture without becoming overly detailed. Subtle, soft smudges in the background suggest depth and atmosphere, allowing the figure to remain the focal point. The medium and paper's qualities complement the spontaneous, gestural nature of the subject."
image = pipe(prompt).images[0]