Diffusers How to use strangerzonehf/Qw-Sketch 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("strangerzonehf/Qw-Sketch")
prompt = "Qw-Sketch, An eye-level sketch of a young Asian man with dark brown hair. His eyes are squinted and his lips are slightly parted. His head is tilted slightly to the right, and he has a slight smile on his lips. His hair is pulled back in a ponytail, and his bangs are slicked back. He is wearing a collared button-down shirt with a collar and a green tie around his neck. The background is a deep blue, and there are green rays of light shining down on the mans face."
image = pipe(prompt).images[0]