From fd6404bb2f1c56b107986c8818dd5086a48871a7 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Thu, 21 Aug 2025 01:45:31 +0300 Subject: [PATCH] Update nodes.py --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index dee2891..9d8a6fe 100644 --- a/nodes.py +++ b/nodes.py @@ -3107,7 +3107,7 @@ class WanVideoSampler: ).to(dtype) pcd_data['render_latent'] = render_latent - h, w = cond_image.shape[-2], cond_image.shape[-1] if cond_image is not None else (target_h, target_w) + h, w = (cond_image.shape[-2], cond_image.shape[-1]) if cond_image is not None else (target_h, target_w) lat_h, lat_w = h // VAE_STRIDE[1], w // VAE_STRIDE[2] seq_len = ((frame_num - 1) // VAE_STRIDE[0] + 1) * lat_h * lat_w // (PATCH_SIZE[1] * PATCH_SIZE[2])