Upload tosti-v2-qwen-image_000002500.safetensors with huggingface_hub 104614a verified
Choquin commited on
How to use furaidosu/tosti-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/tosti-qwen-image-lora")
prompt = "and anthropomorphic cockroach bodyguard wearing black tuxedo and red ties. The cockroach is wearing black eyeglasses. deep Blue background"
image = pipe(prompt).images[0]