LTX-Video Support for ComfyUI
Python comfyuidiffusion-modelsditimage-to-videoimage-to-video-generationtext-to-imagetext-to-image-generation
Automated PR - 2026-02-11
sync-botbb70ecba6602
diff --git a/LICENSE b/LICENSEindex fccfbeb..b0d79e2 100644--- a/LICENSE+++ b/LICENSE@@ -90,20 +90,20 @@ to be bound by this Agreement.subject to the terms and provisions of a different license (the"Commercial Use Agreement"), as will be provided by the Licensor.Commercial Entities interested in such a commercial license are- required to contact Licensor. Any commercial use of LTX-2 or- Derivatives of LTX-2 by the Commercial Entities not in accordance- with this Agreement and/or the Commercial Use Agreement is strictly- prohibited and shall be deemed a material breach of this Agreement.- Such material breach will be subject, in addition to any license- fees owed to Licensor for the period such Commercial Entity used- LTX-2 (as will be determined by Licensor), to liquidated damages,- which will be paid to Licensor immediately upon demand, in an- amount equal to double the amount that would otherwise have been- paid by you for the relevant period of time. Such amount reflects- a reasonable estimation of the losses and administrative costs- incurred due to such breach. You agree and understand that this- remedy does not limit the Licensor's right to pursue other remedies- available at law or equity.+ required to [contact Licensor](https://ltx.io/model/licensing).+ Any commercial use of LTX-2 or Derivatives of LTX-2 by the+ Commercial Entities not in accordance with this Agreement and/or+ the Commercial Use Agreement is strictly prohibited and shall be+ deemed a material breach of this Agreement. Such material breach+ will be subject, in addition to any license fees owed to Licensor+ for the period such Commercial Entity used LTX-2 (as will be+ determined by Licensor), to liquidated damages, which will be paid+ to Licensor immediately upon demand, in an amount equal to double+ the amount that would otherwise have been paid by you for the+ relevant period of time. Such amount reflects a reasonable estimation+ of the losses and administrative costs incurred due to such breach.+ You agree and understand that this remedy does not limit the Licensor's+ right to pursue other remedies available at law or equity.3. Distribution and Redistribution. You may host for third partiesremote access purposes (e.g. software-as-a-service), reproducediff --git a/latents.py b/latents.pyindex 7a03f65..1280182 100644--- a/latents.py+++ b/latents.py@@ -809,6 +809,18 @@ class LTXVSetAudioVideoMaskByTime::, :, audio_latent_frame_index_start:audio_latent_frame_index_end] = 1.0+ if "noise_mask" in av_latent:+ base_mask = av_latent["noise_mask"].tensors[0].clone()+ if (+ base_mask.shape[0]+ == base_mask.shape[1]+ == 1+ == base_mask.shape[3]+ == base_mask.shape[4]+ ):+ for frame in range(base_mask.shape[2]):+ video_mask[:, :, frame, :, :] *= base_mask[0, 0, frame, 0, 0]+av_latent["noise_mask"] = NestedTensor(ltxav.recombine_audio_and_video_latents(video_mask, audio_mask))