Instructions to use protag0ras/FLUX.2-klein-base-4B_ElleFanningLoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use protag0ras/FLUX.2-klein-base-4B_ElleFanningLoRA 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.2-klein-base-4B", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("protag0ras/FLUX.2-klein-base-4B_ElleFanningLoRA") prompt = "A close-up, natural portrait photo of E11eFann1ng with long blonde wavy hair, sitting in a dimly lit, cozy cafe. She is looking directly at the camera with a neutral, calm expression. She wears round, black-and-gold wire-frame glasses and a dark grey ribbed knit beanie. She is wearing a dark, v-neck sweater over a white top. The background is a blurred bokeh of a warm cafe interior, featuring wooden paneling, soft, hanging pendant lights, and red booth seating." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Ctrl+K