Duplicated from prithivMLmods/Ton618-Epic-Realism-Flux-LoRA
How to use codecandy/epic-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("codecandy/epic-realism") prompt = "Epic Realism, A medium-angle shot of a woman with long, wavy brown hair, a black long-sleeved t-shirt, and a black necklace around her neck. Her eyes are a piercing blue, and her lips are a lighter pink. She is standing in front of a white wall with a window on the left side of the wall. The window is slightly open, and the wall is a light gray color. The womans hair is a darker shade of brown, and she has a slight smile on her face." image = pipe(prompt).images[0]