mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 19:43:38 +00:00
ltxv: fix preprocessing exception when compression is 0. (#7431)
This commit is contained in:
parent
2d17d8910c
commit
832fc02330
@ -446,10 +446,9 @@ class LTXVPreprocess:
|
|||||||
CATEGORY = "image"
|
CATEGORY = "image"
|
||||||
|
|
||||||
def preprocess(self, image, img_compression):
|
def preprocess(self, image, img_compression):
|
||||||
if img_compression > 0:
|
output_images = []
|
||||||
output_images = []
|
for i in range(image.shape[0]):
|
||||||
for i in range(image.shape[0]):
|
output_images.append(preprocess(image[i], img_compression))
|
||||||
output_images.append(preprocess(image[i], img_compression))
|
|
||||||
return (torch.stack(output_images),)
|
return (torch.stack(output_images),)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user