From 731bd6f1cb1fe3181c73e6e823e39c3191794efd Mon Sep 17 00:00:00 2001 From: "Michael.Kupchik" Date: Sat, 29 Mar 2025 14:09:45 +0000 Subject: [PATCH] ltxv: fix preprocessing exception when compression is 0. --- comfy_extras/nodes_lt.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/comfy_extras/nodes_lt.py b/comfy_extras/nodes_lt.py index fdc6c7c13bc..525889200c2 100644 --- a/comfy_extras/nodes_lt.py +++ b/comfy_extras/nodes_lt.py @@ -446,10 +446,9 @@ def INPUT_TYPES(s): CATEGORY = "image" def preprocess(self, image, img_compression): - if img_compression > 0: - output_images = [] - for i in range(image.shape[0]): - output_images.append(preprocess(image[i], img_compression)) + output_images = [] + for i in range(image.shape[0]): + output_images.append(preprocess(image[i], img_compression)) return (torch.stack(output_images),)