From fc7f504e85764f414f3731affd174eb49e138518 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 4 Aug 2025 23:16:25 +0300 Subject: [PATCH] Fix empty latents bug from previous commit --- nodes.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nodes.py b/nodes.py index 4c94d6b..ba70fa6 100644 --- a/nodes.py +++ b/nodes.py @@ -932,11 +932,9 @@ class WanVideoEmptyEmbeds: "target_shape": target_shape, "num_frames": num_frames, "control_embeds": control_embeds["control_embeds"] if control_embeds is not None else None, - "extra_latents": [{ - "samples": extra_latents["samples"], - "index": 0, - }] } + if extra_latents is not None: + embeds["extra_latents"] = extra_latents["samples"].squeeze(0) return (embeds,)