Skip to content

Commit 8a5ac52

Browse files
Fix bug with WanAnimateToVideo node. (Comfy-Org#9988)
1 parent e320635 commit 8a5ac52

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
@@ -1210,7 +1210,7 @@ def execute(cls, positive, negative, vae, width, height, length, batch_size, con
12101210
background_video = background_video[video_frame_offset:]
12111211
background_video = comfy.utils.common_upscale(background_video[:length].movedim(-1, 1), width, height, "area", "center").movedim(1, -1)
12121212
if background_video.shape[0] > ref_images_num:
1213-
image[ref_images_num:background_video.shape[0] - ref_images_num] = background_video[ref_images_num:]
1213+
image[ref_images_num:background_video.shape[0]] = background_video[ref_images_num:]
12141214

12151215
mask_refmotion = torch.ones((1, 1, latent_length * 4, concat_latent_image.shape[-2], concat_latent_image.shape[-1]), device=mask.device, dtype=mask.dtype)
12161216
if continue_motion is not None:

0 commit comments

Comments
 (0)