From 0e81adb843b3c9f4ab6e2b9268f18fb249321e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Sepp=C3=A4nen?= <40791699+kijai@users.noreply.github.com> Date: Mon, 8 Dec 2025 03:17:29 +0200 Subject: [PATCH] Fix for HuMo with I2V --- nodes_sampler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes_sampler.py b/nodes_sampler.py index 03d887f..6442364 100644 --- a/nodes_sampler.py +++ b/nodes_sampler.py @@ -1245,8 +1245,8 @@ class WanVideoSampler: if image_cond is not None: image_cond_input = image_cond.to(z) if humo_reference_count > 0: - image_cond_input = torch.cat([image_cond, humo_image_cond[:, -humo_reference_count:].to(z)], dim=1) - humo_image_cond_neg_input = torch.cat([image_cond, humo_image_cond_neg[:, -humo_reference_count:].to(z)], dim=1) + image_cond_input = torch.cat([image_cond_input, humo_image_cond[:, -humo_reference_count:].to(z)], dim=1) + humo_image_cond_neg_input = torch.cat([image_cond_input, humo_image_cond_neg[:, -humo_reference_count:].to(z)], dim=1) else: image_cond_input = humo_image_cond.to(z) humo_image_cond_neg_input = humo_image_cond_neg.to(z)