How to use InstantX/FLUX.1-dev-LoRA-Makoto-Shinkai 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("InstantX/FLUX.1-dev-LoRA-Makoto-Shinkai") prompt = "Makoto Shinkai style, a boy and a girl looking out of a window with a cat perched on the window sill. There is a bicycle parked in front of them and a plant with flowers to the right side of the image. The wall behind them is visible in the background." image = pipe(prompt).images[0]