From 2cb77ca6f63d0bd1a3e916947f0580f6d7fe03e3 Mon Sep 17 00:00:00 2001 From: fangcun010 Date: Fri, 13 Feb 2026 16:01:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodes.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nodes.py b/nodes.py index 00a1860..04e312c 100644 --- a/nodes.py +++ b/nodes.py @@ -13,11 +13,11 @@ from comfy_api.latest import io def _parse_guides_json(guides_json): if guides_json is None: - raise ValueError("guides_json is required") + return [] raw = guides_json.strip() if not raw: - raise ValueError("guides_json is empty") + return [] try: data = json.loads(raw) @@ -427,7 +427,14 @@ class LTXVAddGuideMultiJsonFc: ramp_frames, ) - processed_batch = torch.cat(processed_images, dim=0) + if processed_images: + processed_batch = torch.cat(processed_images, dim=0) + else: + processed_batch = torch.empty( + (0, target_height, target_width, 3), + dtype=latent_image.dtype, + device=latent_image.device, + ) info_text = _build_info_text( frame_step=time_scale_factor, mask_mode=mask_mode,