Diffusers How to use seawolf2357/test-glasses 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("seawolf2357/test-glasses")
prompt = "A person with a pair of Burberry eyeglasses with a brown frame and clear lenses on a white background. The glasses have a classic, timeless design with the Burberry logo printed on the side. The lenses are tinted and the frame is made of a durable material, making them perfect for everyday wear. [trigger]"
image = pipe(prompt).images[0]