PeterL1n commited on
Commit
2cfe396
1 Parent(s): 337bc14
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -47,7 +47,8 @@ def generate_image(prompt, base, motion, step):
47
 
48
  if motion_loaded != motion:
49
  pipe.unload_lora_weights()
50
- pipe.load_lora_weights(hf_hub_download("guoyww/animatediff", motion))
 
51
  motion_loaded = motion
52
 
53
  output = pipe(prompt=prompt, guidance_scale=1.0, num_inference_steps=step)
 
47
 
48
  if motion_loaded != motion:
49
  pipe.unload_lora_weights()
50
+ pipe.load_lora_weights(hf_hub_download("guoyww/animatediff", motion), adapter_name="motion")
51
+ pipe.set_adapters(["motion"], [0.7])
52
  motion_loaded = motion
53
 
54
  output = pipe(prompt=prompt, guidance_scale=1.0, num_inference_steps=step)