How to use mingyu-oo/FLUX_LoRA_adapter 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-Kontext-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("mingyu-oo/FLUX_LoRA_adapter") prompt = "Designed by Hyundai, 3/4 front view, midsize sedan, three-box, balanced proportions, low stance, short overhangs, sleek beltline, clean body surfacing, angular shoulder lines, prominent grille, narrow intakes, sculpted hood, flush door handles, 19-inch multi-spoke wheels, low-profile tires, tinted glass, chrome accents, red paint" image = pipe(prompt).images[0]