From d8cc4701593164650175f0f5122a0a9ff52b7ab3 Mon Sep 17 00:00:00 2001 From: 2929Dance <60043006+2929Dance@users.noreply.github.com> Date: Sat, 8 Feb 2025 10:14:02 -0800 Subject: [PATCH] Fix handling of cached input latents in img2vid --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 5564860..282b416 100644 --- a/nodes.py +++ b/nodes.py @@ -1271,7 +1271,7 @@ class HyVideoSampler: # print(name, param.data.device) leapfusion_img2vid = False - input_latents = samples["samples"] if samples is not None else None + input_latents = samples["samples"].clone() if samples is not None else None if input_latents is not None: if input_latents.shape[2] == 1: leapfusion_img2vid = True