Skip to content

Commit ad5711e

Browse files
authored
Wan S2V bug fix (#1416)
1 parent cb92d27 commit ad5711e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

diffsynth/pipelines/wan_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ def get_music_base_feature(self, music_path, fps=30):
10851085
return torch.from_numpy(audio_feature)
10861086

10871087
def process(self, pipe: WanVideoPipeline, inputs_shared, inputs_posi, inputs_nega):
1088-
if pipe.dit.wantodance_enable_global:
1088+
if hasattr(pipe.dit, "wantodance_enable_global") and pipe.dit.wantodance_enable_global:
10891089
inputs_nega["skip_9th_layer"] = True
10901090
if inputs_shared.get("wantodance_music_path", None) is not None:
10911091
inputs_shared["music_feature"] = self.get_music_base_feature(inputs_shared["wantodance_music_path"]).to(dtype=pipe.torch_dtype, device=pipe.device)

0 commit comments

Comments
 (0)