cocktailpeanut commited on
Commit
90954f4
1 Parent(s): b416df6
Files changed (1) hide show
  1. app2.py +1 -1
app2.py CHANGED
@@ -186,7 +186,7 @@ class AnimateController:
186
  original_state_dict = {k: v.cpu().clone() for k, v in pipeline.unet.state_dict().items() if "motion_modules." not in k}
187
  pipeline.unet = convert_lcm_lora(pipeline.unet, self.lcm_lora_path, spatial_lora_slider)
188
 
189
- pipeline.enable_model_cpu_offload()
190
  pipeline.to(device)
191
 
192
  if seed_textbox != -1 and seed_textbox != "":
 
186
  original_state_dict = {k: v.cpu().clone() for k, v in pipeline.unet.state_dict().items() if "motion_modules." not in k}
187
  pipeline.unet = convert_lcm_lora(pipeline.unet, self.lcm_lora_path, spatial_lora_slider)
188
 
189
+ pipeline.enable_sequential_cpu_offload()
190
  pipeline.to(device)
191
 
192
  if seed_textbox != -1 and seed_textbox != "":