Fix handling of cached input latents in img2vid

This commit is contained in:
2929Dance
2025-02-08 10:14:02 -08:00
committed by GitHub
parent 4fad5e349d
commit d8cc470159
+1 -1
View File
@@ -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