From b012a3307ebfbfee1fe5b6e85d357f6cc4ac79e3 Mon Sep 17 00:00:00 2001 From: Yousef Rafat <81116377+yousef-rafat@users.noreply.github.com> Date: Wed, 19 Nov 2025 23:19:22 +0200 Subject: [PATCH] ruff check --- comfy/ldm/hunyuan_foley/model.py | 1 - comfy_extras/nodes_video.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/comfy/ldm/hunyuan_foley/model.py b/comfy/ldm/hunyuan_foley/model.py index 6b7294bbd..dc9dd91e1 100644 --- a/comfy/ldm/hunyuan_foley/model.py +++ b/comfy/ldm/hunyuan_foley/model.py @@ -851,7 +851,6 @@ class HunyuanVideoFoley(nn.Module): transformer_options = {}, drop_visual: Optional[List[bool]] = None, ): - device = x.device audio = x bs, _, ol = x.shape tl = ol // self.patch_size diff --git a/comfy_extras/nodes_video.py b/comfy_extras/nodes_video.py index 001013d17..8609d0bf1 100644 --- a/comfy_extras/nodes_video.py +++ b/comfy_extras/nodes_video.py @@ -50,7 +50,7 @@ class EncodeVideo(io.ComfyNode): @classmethod def execute(cls, video, processing_batch_size, step_size, vae = None, clip_vision = None): - + video = video.images if not isinstance(video, torch.Tensor): video = torch.from_numpy(video)