From 333b91a2378b305acaba75af93ae401635e0258c Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Fri, 7 Mar 2025 23:23:52 +0200 Subject: [PATCH] update reqs --- hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py | 2 +- pyproject.toml | 2 +- requirements.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py b/hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py index 6a623ef..e0f4c90 100644 --- a/hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py +++ b/hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py @@ -922,7 +922,7 @@ class HunyuanVideoPipeline(DiffusionPipeline): if progress_bar is not None: progress_bar.update() if callback is not None: - if leapfusion_img2vid: + if leapfusion_img2vid or i2v_condition_type == "token_replace": callback_latent = (latent_model_input[:, :, 1:, :, :] - noise_pred[:, :, 1:, :, :] * t / 1000).detach()[0].permute(1,0,2,3) else: callback_latent = (latent_model_input[:, :16, :, :, :] - noise_pred * t / 1000).detach()[0].permute(1,0,2,3) diff --git a/pyproject.toml b/pyproject.toml index 6a19fa6..fcbab77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "comfyui-hunyuanvideowrapper" description = "ComfyUI diffusers wrapper nodes for [a/HunyuanVideo](https://github.com/Tencent/HunyuanVideo)" version = "1.0.5" license = {file = "LICENSE"} -dependencies = ["accelerate >= 1.2.1", "diffusers >= 0.31.0", "transformers >= 4.47.0", "jax >= 0.4.28", "timm >= 0.6.13"] +dependencies = ["accelerate >= 1.2.1", "diffusers >= 0.31.0", "transformers >= 4.49.0", "jax >= 0.4.28", "timm >= 1.0.15"] [project.urls] Repository = "https://github.com/kijai/ComfyUI-HunyuanVideoWrapper" diff --git a/requirements.txt b/requirements.txt index 0fc8dec..4c9e0b8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ accelerate >= 1.2.1 diffusers >= 0.31.0 -transformers >= 4.47.0 +transformers >= 4.49.0 jax >= 0.4.28 -timm >= 0.6.13 \ No newline at end of file +timm >= 1.0.15 \ No newline at end of file