Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -369,14 +369,14 @@ class Drag:
|
|
369 |
)
|
370 |
controlnet = controlnet.to(dtype)
|
371 |
|
372 |
-
if is_xformers_available():
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
else:
|
378 |
-
|
379 |
-
|
380 |
|
381 |
pipe = StableVideoDiffusionInterpControlPipeline.from_pretrained(
|
382 |
"checkpoints/stable-video-diffusion-img2vid-xt",
|
|
|
369 |
)
|
370 |
controlnet = controlnet.to(dtype)
|
371 |
|
372 |
+
# if is_xformers_available():
|
373 |
+
# import xformers
|
374 |
+
# xformers_version = version.parse(xformers.__version__)
|
375 |
+
# unet.enable_xformers_memory_efficient_attention()
|
376 |
+
# # controlnet.enable_xformers_memory_efficient_attention()
|
377 |
+
# else:
|
378 |
+
# raise ValueError(
|
379 |
+
# "xformers is not available. Make sure it is installed correctly")
|
380 |
|
381 |
pipe = StableVideoDiffusionInterpControlPipeline.from_pretrained(
|
382 |
"checkpoints/stable-video-diffusion-img2vid-xt",
|