From 21db5cf03920a144fa502ef9f48737252a7f7f38 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Fri, 7 Mar 2025 23:52:15 +0200 Subject: [PATCH] fix T2V --- hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py b/hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py index e0f4c90..3028d96 100644 --- a/hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py +++ b/hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py @@ -891,7 +891,7 @@ class HunyuanVideoPipeline(DiffusionPipeline): ) # compute the previous noisy sample x_t -> x_t-1 - if i2v_condition_type == "token_replace": + if image_cond_latents is not None and i2v_condition_type == "token_replace": latents = self.scheduler.step( noise_pred[:, :, 1:, :, :], t, latents[:, :, 1:, :, :], **extra_step_kwargs, return_dict=False )[0]