auraflow_catreject / cat_reject_aura.py
panopstor's picture
Upload cat_reject_aura.py
2d8cad2 verified
raw
history blame contribute delete
No virus
872 Bytes
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")