Views
No views yet
georgian style mansion, p3tr4_style, whimsical watercolor with soft edges, layered textures, natural colors, and playful hand-drawn details, no realism3.00.020None421024x10241import torch
2from diffusers import DiffusionPipeline
3
4model_id = 'black-forest-labs/FLUX.1-dev'
5adapter_id = 'vheretic/petra30k_flux_lora'
6pipeline = DiffusionPipeline.from_pretrained(model_id)
7pipeline.load_lora_weights(adapter_id)
8
9prompt = "georgian style mansion, p3tr4_style, whimsical watercolor with soft edges, layered textures, natural colors, and playful hand-drawn details, no realism"
10
11pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
12image = pipeline(
13 prompt=prompt,
14 num_inference_steps=20,
15 generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
16 width=1024,
17 height=1024,
18 guidance_scale=3.0,
19).images[0]
20image.save("output.png", format="PNG")