Spaces:
Runtime error
Runtime error
Commit
·
53cf0d7
1
Parent(s):
60c50f6
Update app.py
Browse files
app.py
CHANGED
@@ -6,15 +6,18 @@ from diffusers import StableDiffusionPipeline
|
|
6 |
from free_lunch_utils import register_free_upblock2d, register_free_crossattn_upblock2d
|
7 |
|
8 |
|
9 |
-
model_id = "CompVis/stable-diffusion-v1-4"
|
|
|
10 |
pip_1_4 = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
11 |
pip_1_4 = pip_1_4.to("cuda")
|
12 |
|
13 |
-
model_id = "runwayml/stable-diffusion-v1-5"
|
|
|
14 |
pip_1_5 = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
15 |
pip_1_5 = pip_1_5.to("cuda")
|
16 |
|
17 |
-
model_id = "stabilityai/stable-diffusion-2-1"
|
|
|
18 |
pip_2_1 = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
19 |
pip_2_1 = pip_2_1.to("cuda")
|
20 |
|
@@ -75,39 +78,6 @@ examples = [
|
|
75 |
[
|
76 |
"half human half cat, a human cat hybrid",
|
77 |
],
|
78 |
-
[
|
79 |
-
"a hedgehog using a calculator",
|
80 |
-
],
|
81 |
-
[
|
82 |
-
"kanye west | diffuse lighting | fantasy | intricate elegant highly detailed lifelike photorealistic digital painting | artstation",
|
83 |
-
],
|
84 |
-
[
|
85 |
-
"astronaut pig",
|
86 |
-
],
|
87 |
-
[
|
88 |
-
"two people shouting at each other",
|
89 |
-
],
|
90 |
-
[
|
91 |
-
"A linked in profile picture of Elon Musk",
|
92 |
-
],
|
93 |
-
[
|
94 |
-
"A man looking out of a rainy window",
|
95 |
-
],
|
96 |
-
[
|
97 |
-
"close up, iron man, eating breakfast in a cabin, symmetrical balance, hyper-realistic --ar 16:9 --style raw"
|
98 |
-
],
|
99 |
-
[
|
100 |
-
'A high tech solarpunk utopia in the Amazon rainforest',
|
101 |
-
],
|
102 |
-
[
|
103 |
-
'A pikachu fine dining with a view to the Eiffel Tower',
|
104 |
-
],
|
105 |
-
[
|
106 |
-
'A mecha robot in a favela in expressionist style',
|
107 |
-
],
|
108 |
-
[
|
109 |
-
'an insect robot preparing a delicious meal',
|
110 |
-
],
|
111 |
]
|
112 |
|
113 |
|
|
|
6 |
from free_lunch_utils import register_free_upblock2d, register_free_crossattn_upblock2d
|
7 |
|
8 |
|
9 |
+
# model_id = "CompVis/stable-diffusion-v1-4"
|
10 |
+
model_id = "./stable-diffusion-v1-4"
|
11 |
pip_1_4 = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
12 |
pip_1_4 = pip_1_4.to("cuda")
|
13 |
|
14 |
+
# model_id = "runwayml/stable-diffusion-v1-5"
|
15 |
+
model_id = "./stable-diffusion-v1-5"
|
16 |
pip_1_5 = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
17 |
pip_1_5 = pip_1_5.to("cuda")
|
18 |
|
19 |
+
# model_id = "stabilityai/stable-diffusion-2-1"
|
20 |
+
model_id = "./stable-diffusion-2-1"
|
21 |
pip_2_1 = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
22 |
pip_2_1 = pip_2_1.to("cuda")
|
23 |
|
|
|
78 |
[
|
79 |
"half human half cat, a human cat hybrid",
|
80 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
]
|
82 |
|
83 |
|