images / run.py
patrickvonplaten's picture
up
ef6b7af
raw
history blame
574 Bytes
#!/usr/bin/env python3
from diffusers import StableDiffusionPipeline
import torch
model_ids = ["nitrosocke/Arcane-Diffusion", "nitrosocke/spider-verse-diffusion", "nitrosocke/mo-di-diffusion", "nitrosocke/archer-diffusion", "nitrosocke/elden-ring-diffusion"]
for model_id in model_ids:
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "arcane style, a magical princess with golden hair"
image = pipe(prompt).images[0]
image.save(f"./magical_princess_{model_id.split('/')[-1]}.png")