Views
No views yet

0.9 to 1.3 in diffusers.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-live-3D", weight_name="FLUX-dev-lora-live_3D.safetensors")
6pipe.fuse_lora(lora_scale=1.1)
7pipe.to("cuda")
8
9prompt = "A colorful cartoon monkey sits on a bus as it rolls down the street in Times Square, New York"
10
11image = pipe(prompt,
12 num_inference_steps=24,
13 guidance_scale=3.5,
14 ).images[0]
15image.save(f"example.png")