From 795a74d756bde64dd2f97da5aeb09984a6dcf5f4 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Fri, 19 Sep 2025 22:28:27 +0300 Subject: [PATCH] Update nodes.py --- nodes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index ef9ec8f..9bd446d 100644 --- a/nodes.py +++ b/nodes.py @@ -2383,6 +2383,7 @@ class WanVideoSampler: wananim_face_pixels = image_embeds.get("face_pixels", None) if image_cond is None: image_cond = image_embeds.get("ref_latent", None) + has_ref = image_cond is not None latent_video_length = noise.shape[1] @@ -4669,8 +4670,6 @@ class WanVideoSampler: latent = latent[:,:-phantom_latents.shape[1]] if humo_reference_count > 0: latent = latent[:,:-humo_reference_count] - if wananim_pose_latents is not None: - latent = latent[:, 1:] cache_states = None if cache_args is not None: