Skip to content

Commit 23f6bc1

Browse files
committed
fix bug with mask
1 parent 694dcf2 commit 23f6bc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffusers/pipelines/wan/pipeline_wan_vace.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ def preprocess_conditions(
392392

393393
if mask is not None:
394394
mask = self.video_processor.preprocess_video(mask, image_size[0], image_size[1])
395+
mask = torch.clamp((mask + 1) / 2, min=0, max=1)
395396
else:
396397
mask = torch.ones_like(video)
397398

0 commit comments

Comments
 (0)