Views
No views yet
Digital art of a topless anthro male wolf wearing a sun hat and blue banana-patterned swimming trunks7.50.030None4210241import torch
2from diffusers import DiffusionPipeline
3
4model_id = 'pixart-sigma-test'
5pipeline = DiffusionPipeline.from_pretrained(model_id)
6
7prompt = "Digital art of a topless anthro male wolf wearing a sun hat and blue banana-patterned swimming trunks"
8negative_prompt = "blurry, cropped, ugly"
9
10pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
11image = pipeline(
12 prompt=prompt,
13 negative_prompt='blurry, cropped, ugly',
14 num_inference_steps=30,
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=1152,
17 height=768,
18 guidance_scale=7.5,
19 guidance_rescale=0.0,
20).images[0]
21image.save("output.png", format="PNG")