Spaces:
Runtime error
Runtime error
Commit
·
fbf93ca
1
Parent(s):
2a84e10
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ 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 |
-
pip = StableDiffusionPipeline.from_pretrained(
|
23 |
pip = pip.to("cuda")
|
24 |
|
25 |
def infer(prompt, model, seed, b1, b2, s1, s2):
|
|
|
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_id, torch_dtype=torch.float16)
|
23 |
pip = pip.to("cuda")
|
24 |
|
25 |
def infer(prompt, model, seed, b1, b2, s1, s2):
|