initial commit 3a4f4b6 verified
Savva commited on
How to use protag0ras/flux1dev-ElleFanningLora 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", torch_dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("protag0ras/flux1dev-ElleFanningLora")
prompt = "candid photograph of ellefanning sitting in a dark cafe, wearing a crop top sweater and a beanie hat and baggy pants, PG picture, sfw, wearing round glasses, cinematic <lora:elle-fanning-v5:1>"
image = pipe(prompt).images[0]