patrickvonplaten
commited on
Commit
•
ef6b7af
1
Parent(s):
f3c75bd
up
Browse files
astronaut_rides_horse.png → magical_princess_Arcane-Diffusion.png
RENAMED
File without changes
|
magical_princess_archer-diffusion.png
ADDED
Git LFS Details
|
magical_princess_elden-ring-diffusion.png
ADDED
Git LFS Details
|
magical_princess_mo-di-diffusion.png
ADDED
Git LFS Details
|
magical_princess_spider-verse-diffusion.png
ADDED
Git LFS Details
|
run.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
from diffusers import StableDiffusionPipeline
|
3 |
+
import torch
|
4 |
+
|
5 |
+
model_ids = ["nitrosocke/Arcane-Diffusion", "nitrosocke/spider-verse-diffusion", "nitrosocke/mo-di-diffusion", "nitrosocke/archer-diffusion", "nitrosocke/elden-ring-diffusion"]
|
6 |
+
|
7 |
+
|
8 |
+
for model_id in model_ids:
|
9 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
10 |
+
pipe = pipe.to("cuda")
|
11 |
+
|
12 |
+
prompt = "arcane style, a magical princess with golden hair"
|
13 |
+
image = pipe(prompt).images[0]
|
14 |
+
|
15 |
+
image.save(f"./magical_princess_{model_id.split('/')[-1]}.png")
|