Skip to content

Commit 707b263

Browse files
Fix bug with WanAnimateToVideo. (Comfy-Org#9990)
1 parent 8a5ac52 commit 707b263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfy_extras/nodes_wan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ def execute(cls, positive, negative, vae, width, height, length, batch_size, con
12291229
character_mask = character_mask.unsqueeze(1)
12301230
character_mask = comfy.utils.common_upscale(character_mask[:, :, :length], concat_latent_image.shape[-1], concat_latent_image.shape[-2], "nearest-exact", "center")
12311231
if character_mask.shape[2] > ref_images_num:
1232-
mask_refmotion[:, :, ref_images_num:character_mask.shape[2] + ref_images_num] = character_mask[:, :, ref_images_num:]
1232+
mask_refmotion[:, :, ref_images_num:character_mask.shape[2]] = character_mask[:, :, ref_images_num:]
12331233

12341234
concat_latent_image = torch.cat((concat_latent_image, vae.encode(image[:, :, :, :3])), dim=2)
12351235

0 commit comments

Comments
 (0)