File size: 872 Bytes
50f4ac8 2d8cad2 50f4ac8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
from diffusers import AuraFlowPipeline
import torch
pipeline = AuraFlowPipeline.from_pretrained(
"fal/AuraFlow",
torch_dtype=torch.float16
).to("cuda")
prompt = """Concept art of a skeleton cowboy, dressed in shabby clothes,\
is illuminated by a flash from a gun show against a solid black background. \
He's holding a gun and has a book open on his thigh. The image is minimalist, \
with a strong contrast between light and darkness. The picture captures a moment of solitude and mystery."""
num_inference_steps=25
guidance_scale=3.5
for seed in range(1580,1600):
image = pipeline(
prompt=prompt,
height=1024,
width=1024,
num_inference_steps=num_inference_steps,
generator=torch.Generator().manual_seed(seed),
guidance_scale=guidance_scale,
).images[0]
image.save(f"cat_reject_maybe_{seed}.jpg")
|