Spaces:
Build error
Build error
Update video_diffusion/zero_shot/zero_shot_text2video.py
Browse files
video_diffusion/zero_shot/zero_shot_text2video.py
CHANGED
|
@@ -13,9 +13,9 @@ class ZeroShotText2VideoGenerator:
|
|
| 13 |
|
| 14 |
def load_model(self, model_id):
|
| 15 |
if self.pipe is None:
|
| 16 |
-
self.pipe = TextToVideoZeroPipeline.from_pretrained(model_id, torch_dtype=torch.
|
| 17 |
-
self.pipe.to("
|
| 18 |
-
self.pipe.enable_xformers_memory_efficient_attention()
|
| 19 |
self.pipe.enable_attention_slicing()
|
| 20 |
|
| 21 |
return self.pipe
|
|
@@ -162,3 +162,4 @@ class ZeroShotText2VideoGenerator:
|
|
| 162 |
],
|
| 163 |
outputs=zero_shot_text2video_output,
|
| 164 |
)
|
|
|
|
|
|
| 13 |
|
| 14 |
def load_model(self, model_id):
|
| 15 |
if self.pipe is None:
|
| 16 |
+
self.pipe = TextToVideoZeroPipeline.from_pretrained(model_id, torch_dtype=torch.float32).to("cpu")
|
| 17 |
+
self.pipe.to("cpu")
|
| 18 |
+
#self.pipe.enable_xformers_memory_efficient_attention()
|
| 19 |
self.pipe.enable_attention_slicing()
|
| 20 |
|
| 21 |
return self.pipe
|
|
|
|
| 162 |
],
|
| 163 |
outputs=zero_shot_text2video_output,
|
| 164 |
)
|
| 165 |
+
|