ruizhaocv commited on
Commit
1b3defc
1 Parent(s): 9162fa6

Update demo/motiondirector.py

Browse files
Files changed (1) hide show
  1. 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():