Spaces:
Runtime error
Runtime error
Update demo/motiondirector.py
Browse files- demo/motiondirector.py +1 -1
demo/motiondirector.py
CHANGED
@@ -153,8 +153,8 @@ class MotionDirector():
|
|
153 |
latents_folder = f"./MotionDirector_pretrained/{model_select_type}/cached_latents"
|
154 |
latents_path = f"{latents_folder}/{random.choice(os.listdir(latents_folder))}"
|
155 |
assert os.path.exists(lora_path)
|
156 |
-
|
157 |
device = "cuda"
|
|
|
158 |
with torch.autocast(device, dtype=torch.half):
|
159 |
# prepare input latents
|
160 |
with torch.no_grad():
|
|
|
153 |
latents_folder = f"./MotionDirector_pretrained/{model_select_type}/cached_latents"
|
154 |
latents_path = f"{latents_folder}/{random.choice(os.listdir(latents_folder))}"
|
155 |
assert os.path.exists(lora_path)
|
|
|
156 |
device = "cuda"
|
157 |
+
self.pipe.enable_vae_slicing()
|
158 |
with torch.autocast(device, dtype=torch.half):
|
159 |
# prepare input latents
|
160 |
with torch.no_grad():
|