Spaces:
Runtime error
Runtime error
patrickvonplaten
commited on
Commit
·
367671b
1
Parent(s):
9186ac6
Update app.py (#1)
Browse files- Update app.py (cf61e65f2bd1326f9c7a255ee2b09ca7cea9ff56)
app.py
CHANGED
@@ -83,7 +83,6 @@ def img_to_img(
|
|
83 |
|
84 |
if torch.cuda.is_available():
|
85 |
pipe = pipe.to("cuda")
|
86 |
-
pipe.enable_xformers_memory_efficient_attention()
|
87 |
|
88 |
ratio = min(height / img.height, width / img.width)
|
89 |
img = img.resize((int(img.width * ratio), int(img.height * ratio)), Image.LANCZOS)
|
|
|
83 |
|
84 |
if torch.cuda.is_available():
|
85 |
pipe = pipe.to("cuda")
|
|
|
86 |
|
87 |
ratio = min(height / img.height, width / img.width)
|
88 |
img = img.resize((int(img.width * ratio), int(img.height * ratio)), Image.LANCZOS)
|