Views
No views yet
ethnographic photography of teddy bear at a picnic holding a sign that says SOON, sitting next to a red sphere which is inside a capsule5.50.030euler42512x512,1024x1024,1280x768,960x11521import torch
2from diffusers import StableDiffusion3Pipeline
3
4
5
6model_id = "sd3-reality-mix"
7prompt = "ethnographic photography of teddy bear at a picnic holding a sign that says SOON, sitting next to a red sphere which is inside a capsule"
8negative_prompt = "malformed, disgusting, overexposed, washed-out"
9
10pipeline = DiffusionPipeline.from_pretrained(model_id)
11pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
12image = pipeline(
13 prompt=prompt,
14 negative_prompt='blurry, cropped, ugly',
15 num_inference_steps=30,
16 generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
17 width=1152,
18 height=768,
19 guidance_scale=5.5,
20 guidance_rescale=0.0,
21).images[0]
22image.save("output.png", format="PNG")