File size: 574 Bytes
ef6b7af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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")