Views
No views yet
1from diffusers import FluxPipeline
2import torch
3
4# Load the base model
5pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
6
7# Load the LoRA weights
8pipe.load_lora_weights("Kabundji/sandie-lora", weight_name="flux-lora.safetensors")
9pipe.to("cuda")
10
11# Generate image
12prompt = "a beautiful fox in a forest, sandie style"
13image = pipe(prompt, num_inference_steps=28, guidance_scale=3.5).images[0]
14image.save("fox_output.png")