Skip to content

Commit 798265f

Browse files
authored
[Wan] Fix mask padding in Wan VACE pipeline. (#11778)
1 parent cd81349 commit 798265f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/wan/pipeline_wan_vace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def prepare_masks(
593593
num_ref_images = len(reference_images_batch)
594594
if num_ref_images > 0:
595595
mask_padding = torch.zeros_like(mask_[:, :num_ref_images, :, :])
596-
mask_ = torch.cat([mask_, mask_padding], dim=1)
596+
mask_ = torch.cat([mask_padding, mask_], dim=1)
597597
mask_list.append(mask_)
598598
return torch.stack(mask_list)
599599

0 commit comments

Comments
 (0)