From f6fc9cee6e497a7bf8e14024e59dbcd2bc6d7d85 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sat, 13 Sep 2025 20:29:05 +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 4d030d9..69d102c 100644 --- a/nodes.py +++ b/nodes.py @@ -2885,7 +2885,7 @@ class WanVideoSampler: # HuMo if humo_audio_input_neg is not None and not math.isclose(humo_audio_cfg_scale[idx], 1.0): - if len(cache_state) !=3: + if cache_state is not None and len(cache_state) != 3: cache_state.append(None) if t > 980 and humo_image_cond_neg is not None: # use image cond for first timesteps base_params['y'] = [humo_image_cond_neg.to(z)]