Skip to content

Commit feb49b2

Browse files
authored
Update pipeline_wan_vace.py
1 parent f8cd5b1 commit feb49b2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/diffusers/pipelines/wan/pipeline_wan_vace.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ def prepare_video_latents(
525525
latents = retrieve_latents(self.vae.encode(video), generator, sample_mode="argmax").unbind(0)
526526
latents = ((latents.float() - latents_mean) * latents_std).to(vae_dtype)
527527
else:
528-
mask = mask.to(dtype=vae_dtype)
529528
mask = torch.where(mask > 0.5, 1.0, 0.0).to(dtype=vae_dtype)
530529
inactive = video * (1 - mask)
531530
reactive = video * mask

0 commit comments

Comments
 (0)