Skip to content

Commit 7126ecf

Browse files
authored
set LTX min length to 1 for t2i (Comfy-Org#5750)
At length=1, the LTX model can do txt2img and img2img with no other changes required.
1 parent ab885b3 commit 7126ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfy_extras/nodes_lt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class EmptyLTXVLatentVideo:
1010
def INPUT_TYPES(s):
1111
return {"required": { "width": ("INT", {"default": 768, "min": 64, "max": nodes.MAX_RESOLUTION, "step": 32}),
1212
"height": ("INT", {"default": 512, "min": 64, "max": nodes.MAX_RESOLUTION, "step": 32}),
13-
"length": ("INT", {"default": 97, "min": 9, "max": nodes.MAX_RESOLUTION, "step": 8}),
13+
"length": ("INT", {"default": 97, "min": 1, "max": nodes.MAX_RESOLUTION, "step": 8}),
1414
"batch_size": ("INT", {"default": 1, "min": 1, "max": 4096})}}
1515
RETURN_TYPES = ("LATENT",)
1616
FUNCTION = "generate"

0 commit comments

Comments
 (0)