Views
No views yet

The background is 4 real photos, and in the middle is a cartoon picture summarizing the real photos. to trigger the image generation. The recommended scale is 1.0 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-One-Click-Creative-Template", weight_name="FLUX-dev-lora-One-Click-Creative-Template.safetensors")
6pipe.fuse_lora(lora_scale=1.0)
7pipe.to("cuda")
8
9prompt = "A young girl, red hair, blue dress. The background is 4 real photos, and in the middle is a cartoon picture summarizing the real photos."
10
11image = pipe(prompt,
12 num_inference_steps=24,
13 guidance_scale=3.5,
14 width=960, height=1280,
15 ).images[0]
16image.save(f"example.png")