Upload 2 files eca38c5 verified
Choquin commited on
How to use furaidosu/lobato-qwen-image-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("Qwen/Qwen-Image", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("furaidosu/lobato-qwen-image-lora")
prompt = "An angry middle age man. He has messy brown hair. He has sidebums. His double chin is violet. The man has blue eyes. There is an English mastiff dog. The background is dark red. There are french fries flying at the background."
image = pipe(prompt).images[0]