Views
No views yet

artistic style blends reality and illustration elements. to trigger the image generation. The recommended scale is 0.8 to 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-Vector-Journey", weight_name="FLUX-dev-lora-Vector-Journey.safetensors")
6pipe.fuse_lora(lora_scale=1.0)
7pipe.to("cuda")
8
9prompt = "A cartoon-style Batman, walking on the street, the art style combines reality and illustration elements."
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")