Skip to content

Commit

Permalink
set LTX min length to 1 for t2i (comfyanonymous#5750)
Browse files Browse the repository at this point in the history
At length=1, the LTX model can do txt2img and img2img with no other changes required.
  • Loading branch information
spacepxl authored and tiangles committed Nov 29, 2024
1 parent 871a32d commit 0a4b827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comfy_extras/nodes_lt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class EmptyLTXVLatentVideo:
def INPUT_TYPES(s):
return {"required": { "width": ("INT", {"default": 768, "min": 64, "max": nodes.MAX_RESOLUTION, "step": 32}),
"height": ("INT", {"default": 512, "min": 64, "max": nodes.MAX_RESOLUTION, "step": 32}),
"length": ("INT", {"default": 97, "min": 9, "max": nodes.MAX_RESOLUTION, "step": 8}),
"length": ("INT", {"default": 97, "min": 1, "max": nodes.MAX_RESOLUTION, "step": 8}),
"batch_size": ("INT", {"default": 1, "min": 1, "max": 4096})}}
RETURN_TYPES = ("LATENT",)
FUNCTION = "generate"
Expand Down

0 comments on commit 0a4b827

Please sign in to comment.