[LoRA] fix peft state dict parsing by sayakpaul 路 Pull Request #10532 路 huggingface/diffusers (original) (raw)
from diffusers import FluxPipeline import torch
pipeline = FluxPipeline.from_pretrained( "black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16 ).to("cuda") pipeline.load_lora_weights( "sayakpaul/different-lora-from-civitai", weight_name="sharp_detailed_foot.safetensors" )
prompt = """ UHD, 4k, ultra detailed, cinematic, a photograph of <lora:sharp detailed image (foot focus) v1.1:0.9> sharp detailed image of a female person standing on a black mat with their bare feet in front of camera, perfect image, perfect body, perfect anatomy, sharp image, detailed image, cinematic style, high quality photography, sharp detailed image style, solo, barefoot, feet, toes, black background, toenails, close-up, foot focus, muscular, veins, soles, facing camera, feet in front of camera, polished nails, closeup, feet focus, epic, beautiful lighting, inpsiring """
_ = pipeline(prompt, num_inference_steps=20, generator=torch.manual_seed(2810038592))