Spaces:
Runtime error
Runtime error
Commit
·
d222edb
1
Parent(s):
ab1d830
Update app.py
Browse files
app.py
CHANGED
|
@@ -117,16 +117,15 @@ with block:
|
|
| 117 |
elif sd_options == 'SD2.1':
|
| 118 |
model_id = "stabilityai/stable-diffusion-2-1"
|
| 119 |
|
| 120 |
-
pip_sd = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 121 |
-
pip_sd = pip_sd.to("cuda")
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
pip_freeu =
|
| 125 |
-
|
| 126 |
-
#
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
# -------- freeu block registration
|
| 130 |
|
| 131 |
b1 = gr.Slider(label='b1: backbone factor of the first stage block of decoder',
|
| 132 |
minimum=1,
|
|
|
|
| 117 |
elif sd_options == 'SD2.1':
|
| 118 |
model_id = "stabilityai/stable-diffusion-2-1"
|
| 119 |
|
| 120 |
+
# pip_sd = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 121 |
+
# pip_sd = pip_sd.to("cuda")
|
| 122 |
+
|
| 123 |
+
# pip_freeu = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 124 |
+
# pip_freeu = pip_freeu.to("cuda")
|
| 125 |
+
# # -------- freeu block registration
|
| 126 |
+
# register_free_upblock2d(pipe, b1=1.2, b2=1.4, s1=0.9, s2=0.2)
|
| 127 |
+
# register_free_crossattn_upblock2d(pipe, b1=1.2, b2=1.4, s1=0.9, s2=0.2)
|
| 128 |
+
# # -------- freeu block registration
|
|
|
|
| 129 |
|
| 130 |
b1 = gr.Slider(label='b1: backbone factor of the first stage block of decoder',
|
| 131 |
minimum=1,
|