Views
No views yet




1.0. The scale be can be negative.1import torch
2from diffusers import FluxPipeline
3
4pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
5pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-blended-realistic-illustration", weight_name="FLUX.1-dev-LoRA-add-details.safetensors")
6pipe.fuse_lora(lora_scale=1.0)
7pipe.to("cuda")
8
9prompt = "A beautiful woman, flim rendering"
10
11image = pipe(prompt,
12 num_inference_steps=24,
13 guidance_scale=3.5,
14 width=768, height=1024,
15 ).images[0]
16image.save(f"example.png")