Spaces:
Runtime error
Runtime error
Commit
·
2a84e10
1
Parent(s):
3fa8c23
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,10 +19,13 @@ model_id = "CompVis/stable-diffusion-v1-4"
|
|
| 19 |
# register_free_crossattn_upblock2d(pip_freeu, b1=1.2, b2=1.4, s1=0.9, s2=0.2)
|
| 20 |
# # -------- freeu block registration
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
def infer(prompt, model, seed, b1, b2, s1, s2):
|
| 23 |
|
| 24 |
-
pip = StableDiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
| 25 |
-
pip = pip.to("cuda")
|
| 26 |
|
| 27 |
|
| 28 |
# register_free_upblock2d(pip, b1=1.0, b2=1.0, s1=1.0, s2=1.0)
|
|
|
|
| 19 |
# register_free_crossattn_upblock2d(pip_freeu, b1=1.2, b2=1.4, s1=0.9, s2=0.2)
|
| 20 |
# # -------- freeu block registration
|
| 21 |
|
| 22 |
+
pip = StableDiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
| 23 |
+
pip = pip.to("cuda")
|
| 24 |
+
|
| 25 |
def infer(prompt, model, seed, b1, b2, s1, s2):
|
| 26 |
|
| 27 |
+
# pip = StableDiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
| 28 |
+
# pip = pip.to("cuda")
|
| 29 |
|
| 30 |
|
| 31 |
# register_free_upblock2d(pip, b1=1.0, b2=1.0, s1=1.0, s2=1.0)
|