How to use VideoAditor/Flux-Lora-Realism 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("VideoAditor/Flux-Lora-Realism") prompt = "-" image = pipe(prompt).images[0]
I'm trying to find a way to make XLabs-AI/flux-RealismLora work in diffusers. Because they have different structures.Can you share your code for converting the structure?
· Sign up or log in to comment