How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("FluxArt/stable-flux-v1.5", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("sergSt/flux-lora")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

Flux LoRA v0.004

LoRA-модификация для модели FluxArt/stable-flux-v1.5, предназначенная для генерации кинематографичных портретов в стиле киберпанк, неон-нуар и sci-fi.

🧠 Использование

from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("FluxArt/stable-flux-v1.5").to("cuda")
pipe.load_lora_weights("sergSt/flux-lora", weight_name="flux-lora-000004.safetensors")
pipe.fuse_lora()
image = pipe("cinematic portrait of a cyberpunk samurai").images[0]
image.save("output.png")
Downloads last month
2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support