From 4b079bdf5ad7ce4d26d47f51bf981a5104b62295 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Wed, 1 Oct 2025 19:30:44 +0300 Subject: [PATCH] Update nodes_sampler.py --- nodes_sampler.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nodes_sampler.py b/nodes_sampler.py index d6064ae..e1cbfc8 100644 --- a/nodes_sampler.py +++ b/nodes_sampler.py @@ -1034,9 +1034,10 @@ class WanVideoSampler: is_uncond=True ) log.info(f"Extracted {len(lynx_ref_buffer_uncond)} uncond ref buffers") - - lynx_embeds["ip_x"] = lynx_embeds["ip_x"].to(device, dtype) - lynx_embeds["ip_x_uncond"] = lynx_embeds["ip_x_uncond"].to(device, dtype) + + if lynx_embeds.get("ip_x", None) is not None: + lynx_embeds["ip_x"] = lynx_embeds["ip_x"].to(device, dtype) + lynx_embeds["ip_x_uncond"] = lynx_embeds["ip_x_uncond"].to(device, dtype) lynx_embeds["ref_feature_extractor"] = False lynx_embeds["ref_latent"] = lynx_embeds["ref_text_embed"] = None lynx_embeds["ref_buffer"] = lynx_ref_buffer