LTX-Video Support for ComfyUI
Python comfyuidiffusion-modelsditimage-to-videoimage-to-video-generationtext-to-imagetext-to-image-generation
Automated PR - 2026-01-07
sync-botb7a8a2cfc2a5
diff --git a/README.md b/README.mdindex 26b1b9e..e01d917 100644--- a/README.md+++ b/README.md@@ -64,17 +64,17 @@ Download the following models:* [`ltx-2-19b-dev.safetensors`](https://huggingface.co/Lightricks/LTX-2/blob/main/ltx-2-19b-dev.safetensors)* [`ltx-2-19b-distilled.safetensors`](https://huggingface.co/Lightricks/LTX-2/blob/main/ltx-2-19b-distilled.safetensors)-**Spatial Upsampler** - Required for current two-stage pipeline implementations in this repository- * [`ltx-2-spatial-upsampler-x2-1.0.safetensors`](https://huggingface.co/Lightricks/LTX-2/blob/main/ltx-2-spatial-upsampler-x2-1.0.safetensors)+**Spatial Upscaler** - Required for current two-stage pipeline implementations in this repository+ * [`ltx-2-spatial-upscaler-x2-1.0.safetensors`](https://huggingface.co/Lightricks/LTX-2/blob/main/ltx-2-spatial-upscaler-x2-1.0.safetensors)-**Temporal Upsampler** - Required for current two-stage pipeline implementations in this repository- * [`ltx-2-temporal-upsampler-x2-1.0.safetensors`](https://huggingface.co/Lightricks/LTX-2/blob/main/ltx-2-temporal-upsampler-x2-1.0.safetensors)+**Temporal Upscaler** - Required for current two-stage pipeline implementations in this repository+ * [`ltx-2-temporal-upscaler-x2-1.0.safetensors`](https://huggingface.co/Lightricks/LTX-2/blob/main/ltx-2-temporal-upscaler-x2-1.0.safetensors)**Distilled LoRA** - Required for current two-stage pipeline implementations in this repository (except DistilledPipeline and ICLoraPipeline)* [`ltx-2-19b-distilled-lora-384.safetensors`](https://huggingface.co/Lightricks/LTX-2/blob/main/ltx-2-19b-distilled-lora-384.safetensors)**Gemma Text Encoder** (download all assets from the repository)- * [`Gemma 3`](https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized/)+ * [`Gemma 3`](https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized)**LoRAs*** [`ltx-2-19b-ic-lora-canny-control.safetensors`](https://huggingface.co/Lightricks/LTX-2-19b-IC-LoRA-Canny-Control/blob/main/ltx-2-19b-ic-lora-canny-control.safetensors)diff --git a/__init__.py b/__init__.pyindex 03e8411..dfef2de 100644--- a/__init__.py+++ b/__init__.py@@ -7,7 +7,6 @@ from .easy_samplers import (LTXVInContextSampler,)from .gemma_encoder import LTXVGemmaCLIPModelLoader, LTXVGemmaEnhancePrompt-from .gemma_encoder_mgpu_loader import LTXVGemmaCLIPModelLoaderMGPUfrom .guide import LTXVAddGuideAdvancedfrom .guiders import GuiderParametersNode, MultimodalGuiderNodefrom .latent_norm import (@@ -83,7 +82,6 @@ NODE_CLASS_MAPPINGS = {"LTXVStatNormLatent": LTXVStatNormLatent,"LTXVPerStepStatNormPatcher": LTXVPerStepStatNormPatcher,"LTXVGemmaCLIPModelLoader": LTXVGemmaCLIPModelLoader,- "LTXVGemmaCLIPModelLoaderMGPU": LTXVGemmaCLIPModelLoaderMGPU,"LTXVGemmaEnhancePrompt": LTXVGemmaEnhancePrompt,"DynamicConditioning": DynamicConditioning,"LowVRAMCheckpointLoader": LowVRAMCheckpointLoader,diff --git a/embeddings_connector.py b/embeddings_connector.pyindex 9465fb4..f3e45bb 100644--- a/embeddings_connector.py+++ b/embeddings_connector.py@@ -284,7 +284,8 @@ class Embeddings1DConnector(nn.Module):)learnable_registers = torch.tile(self.learnable_registers, (num_registers_duplications, 1)- )+ ).to(hidden_states.device)+attention_mask_binary = (attention_mask.squeeze(1).squeeze(1).unsqueeze(-1) >= -9000.0).int()diff --git a/example_workflows/LTX-2_I2V_Distilled_wLora.json b/example_workflows/LTX-2_I2V_Distilled_wLora.jsonindex 323808e..6075a08 100644--- a/example_workflows/LTX-2_I2V_Distilled_wLora.json+++ b/example_workflows/LTX-2_I2V_Distilled_wLora.json@@ -283,44 +283,6 @@"ltx-2-19b-distilled.safetensors"]},- {- "id": 5178,- "type": "LTXVGemmaCLIPModelLoader",- "pos": [- -3158.5490398695288,- 7158.821506282883- ],- "size": [- 421.93656760943577,- 106- ],- "flags": {},- "order": 4,- "mode": 0,- "inputs": [],- "outputs": [- {- "name": "clip",- "type": "CLIP",- "links": [- 13924,- 13926- ]- }- ],- "properties": {- "Node name for S&R": "LTXVGemmaCLIPModelLoader",- "widget_ue_connectable": {- "model_path": true,- "max_length": true- }- },- "widgets_values": [- "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",- "ltx-2-19b-distilled.safetensors",- 1024- ]- },{"id": 5188,"type": "LTXVAudioVAELoader",@@ -333,7 +295,7 @@58],"flags": {},- "order": 5,+ "order": 4,"mode": 0,"inputs": [],"outputs": [@@ -561,7 +523,7 @@58],"flags": {},- "order": 6,+ "order": 5,"mode": 0,"inputs": [],"outputs": [@@ -582,58 +544,6 @@"ltx-2-spatial-upscaler-x2-1.0.safetensors"]},- {- "id": 5212,- "type": "MarkdownNote",- "pos": [- -3624.6205106722414,- 6715.620851300959- ],- "size": [- 421.1303542521987,- 436.3332627074051- ],- "flags": {- "collapsed": false- },- "order": 7,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Model Links",- "properties": {},- "widgets_values": [- "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b-distilled.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled.safetensors)\n- [ ltx-2-spatial-upscaler-x2-1.0.safetensors ](https://huggingface.co/Lightricks/LTX-2/tree/main/ltx-2-spatial-upscaler-x2-1.0.safetensors)\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-pt)\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ comfy_gemma_3_12B_it.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b-distilled.safetensors\nβ βββ π latent_upscale_models/ \n βββ ltx-2-spatial-upscaler-x2-1.0.safetensors\n```\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"- ],- "color": "#432",- "bgcolor": "#653"- },- {- "id": 5211,- "type": "MarkdownNote",- "pos": [- -3623.5618947453854,- 7193.231548656596- ],- "size": [- 420.9178919734818,- 209.33158232705227- ],- "flags": {- "collapsed": false- },- "order": 8,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Prompting LTX-2",- "properties": {},- "widgets_values": [- "## LTX-2 Prompting Tips\n1. **Core Actions**: Describe events and actions as they occur over time \n2. **Audio**: Describe sounds and dialogue needed for the scene \n3. **Reference Image**: Do not repeat details already present \n4. **Consistency**: Avoid instructions that do not match the reference image, as this will degrade results"- ],- "color": "#432",- "bgcolor": "#653"- },{"id": 5213,"type": "MarkdownNote",@@ -648,7 +558,7 @@"flags": {"collapsed": false},- "order": 9,+ "order": 6,"mode": 0,"inputs": [],"outputs": [],@@ -674,7 +584,7 @@"flags": {"collapsed": false},- "order": 10,+ "order": 7,"mode": 0,"inputs": [],"outputs": [],@@ -745,6 +655,120 @@"randomize"]},+ {+ "id": 5178,+ "type": "LTXVGemmaCLIPModelLoader",+ "pos": [+ -3158.5490398695288,+ 7158.821506282883+ ],+ "size": [+ 421.93656760943577,+ 106+ ],+ "flags": {},+ "order": 8,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "name": "clip",+ "type": "CLIP",+ "links": [+ 13924,+ 13926+ ]+ }+ ],+ "properties": {+ "Node name for S&R": "LTXVGemmaCLIPModelLoader",+ "widget_ue_connectable": {+ "model_path": true,+ "max_length": true+ }+ },+ "widgets_values": [+ "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",+ "ltx-2-19b-distilled.safetensors",+ 1024+ ]+ },+ {+ "id": 5175,+ "type": "PrimitiveStringMultiline",+ "pos": [+ -1990.592849503922,+ 6831.482572842548+ ],+ "size": [+ 281.93625497178095,+ 424.68799816112823+ ],+ "flags": {},+ "order": 9,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "name": "STRING",+ "type": "STRING",+ "links": [+ 13928+ ]+ }+ ],+ "title": "Positive Prompt",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "PrimitiveStringMultiline"+ },+ "widgets_values": [+ "a 3d animated movie scene shows the wise elderly owl on the left saying to a baby owl to his right, with a raspy deep voice: \"focus, close your eyes, and flap!\". we then see the little owl jump off the branch screaming in fear and disappear. the the elder owl remains standing on the branch with a disappointed face. the camera remains static in place"+ ],+ "color": "#232",+ "bgcolor": "#353"+ },+ {+ "id": 5180,+ "type": "LoadImage",+ "pos": [+ -2403.4019881614336,+ 6835.8261958245885+ ],+ "size": [+ 395.509854028056,+ 433.14022877831576+ ],+ "flags": {},+ "order": 10,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "name": "IMAGE",+ "type": "IMAGE",+ "links": [+ 13927,+ 13940+ ]+ },+ {+ "name": "MASK",+ "type": "MASK",+ "links": []+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.56",+ "Node name for S&R": "LoadImage"+ },+ "widgets_values": [+ "distilled image.png",+ "image"+ ]+ },{"id": 5189,"type": "3eaa20c4-5842-4fe4-87df-c0a7e83a6a78",@@ -899,80 +923,56 @@]},{- "id": 5175,- "type": "PrimitiveStringMultiline",+ "id": 5211,+ "type": "MarkdownNote","pos": [- -1990.592849503922,- 6831.482572842548+ -3620.0939157608577,+ 7287.881055902407],"size": [- 281.93625497178095,- 424.68799816112823+ 420.9178919734818,+ 209.33158232705227],- "flags": {},+ "flags": {+ "collapsed": false+ },"order": 11,"mode": 0,"inputs": [],- "outputs": [- {- "name": "STRING",- "type": "STRING",- "links": [- 13928- ]- }- ],- "title": "Positive Prompt",- "properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "PrimitiveStringMultiline"- },+ "outputs": [],+ "title": "Prompting LTX-2",+ "properties": {},"widgets_values": [- "a 3d animated movie scene shows the wise elderly owl on the left saying to a baby owl to his right, with a raspy deep voice: \"focus, close your eyes, and flap!\". we then see the little owl jump off the branch screaming in fear and disappear. the the elder owl remains standing on the branch with a disappointed face. the camera remains static in place"+ "## LTX-2 Prompting Tips\n1. **Core Actions**: Describe events and actions as they occur over time \n2. **Audio**: Describe sounds and dialogue needed for the scene \n3. **Reference Image**: Do not repeat details already present \n4. **Consistency**: Avoid instructions that do not match the reference image, as this will degrade results"],- "color": "#232",- "bgcolor": "#353"+ "color": "#432",+ "bgcolor": "#653"},{- "id": 5180,- "type": "LoadImage",+ "id": 5212,+ "type": "MarkdownNote","pos": [- -2403.4019881614336,- 6835.8261958245885+ -3627.789651297241,+ 6716.012179425959],"size": [- 395.509854028056,- 433.14022877831576+ 427.8617596510994,+ 529.3430202216196],- "flags": {},+ "flags": {+ "collapsed": false+ },"order": 12,"mode": 0,"inputs": [],- "outputs": [- {- "name": "IMAGE",- "type": "IMAGE",- "links": [- 13927,- 13940- ]- },- {- "name": "MASK",- "type": "MASK",- "links": []- }- ],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.3.56",- "Node name for S&R": "LoadImage"- },+ "outputs": [],+ "title": "Model Links",+ "properties": {},"widgets_values": [- "distilled image.png",- "image"- ]+ "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b-distilled.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled.safetensors)\n- [ ltx-2-spatial-upscaler-x2-1.0.safetensors ](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-spatial-upscaler-x2-1.0.safetensors)\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized)\n\nPlease download the entire folder - \n\n- Run: \n 1. cd models/text_encoders\n 2. git clone https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized\n\n*Full documentation can be found [here](https://docs.ltx.video/open-source-model/integration-tools/comfy-ui#text-encoder)\n\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b-distilled.safetensors\nβ βββ π latent_upscale_models/ \n βββ ltx-2-spatial-upscaler-x2-1.0.safetensors\n```\n**Assets**\n- [distilled image](https://github.com/Lightricks/ComfyUI-LTXVideo/blob/master/example_workflows/assets/distilled%20image.png)\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"+ ],+ "color": "#432",+ "bgcolor": "#653"}],"links": [@@ -1274,9 +1274,9 @@"flags": {},"nodes": [5176,- 5178,5188,- 5210+ 5210,+ 5178]}],@@ -2100,58 +2100,6 @@1]},- {- "id": 5239,- "type": "ImpactExecutionOrderController",- "pos": [- -2153.013232660581,- 6935.750091838874- ],- "size": [- 254.63517702162235,- 47.506006012050875- ],- "flags": {},- "order": 19,- "mode": 0,- "inputs": [- {- "localized_name": "signal",- "name": "signal",- "type": "*",- "link": 13982- },- {- "localized_name": "value",- "name": "value",- "type": "*",- "link": 13983- }- ],- "outputs": [- {- "localized_name": "signal",- "name": "signal",- "type": "*",- "links": [- 13986,- 13987- ]- },- {- "localized_name": "value",- "name": "value",- "type": "*",- "links": [- 14000- ]- }- ],- "properties": {- "Node name for S&R": "ImpactExecutionOrderController"- },- "widgets_values": []- },{"id": 5069,"type": "GetImageSize",@@ -2354,53 +2302,6 @@"auto"]},- {- "id": 5111,- "type": "RandomNoise",- "pos": [- -746.4419600673787,- 7087.4135610931135- ],- "size": [- 270,- 82- ],- "flags": {- "collapsed": true- },- "order": 14,- "mode": 0,- "inputs": [- {- "localized_name": "noise_seed",- "name": "noise_seed",- "type": "INT",- "widget": {- "name": "noise_seed"- },- "link": 13979- }- ],- "outputs": [- {- "localized_name": "NOISE",- "name": "NOISE",- "type": "NOISE",- "links": [- 13783- ]- }- ],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "RandomNoise"- },- "widgets_values": [- 42,- "fixed"- ]- },{"id": 5138,"type": "EmptyLTXVLatentVideo",@@ -2807,6 +2708,105 @@0.6,false]+ },+ {+ "id": 5239,+ "type": "ImpactExecutionOrderController",+ "pos": [+ -2153.013232660581,+ 6935.750091838874+ ],+ "size": [+ 254.63517702162235,+ 47.506006012050875+ ],+ "flags": {},+ "order": 19,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "signal",+ "name": "signal",+ "type": "*",+ "link": 13982+ },+ {+ "localized_name": "value",+ "name": "value",+ "type": "*",+ "link": 13983+ }+ ],+ "outputs": [+ {+ "localized_name": "signal",+ "name": "signal",+ "type": "*",+ "links": [+ 13986,+ 13987+ ]+ },+ {+ "localized_name": "value",+ "name": "value",+ "type": "*",+ "links": [+ 14000+ ]+ }+ ],+ "properties": {+ "Node name for S&R": "ImpactExecutionOrderController"+ },+ "widgets_values": []+ },+ {+ "id": 5111,+ "type": "RandomNoise",+ "pos": [+ -746.4419600673787,+ 7087.4135610931135+ ],+ "size": [+ 270,+ 82+ ],+ "flags": {+ "collapsed": true+ },+ "order": 14,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "noise_seed",+ "name": "noise_seed",+ "type": "INT",+ "widget": {+ "name": "noise_seed"+ },+ "link": 13979+ }+ ],+ "outputs": [+ {+ "localized_name": "NOISE",+ "name": "NOISE",+ "type": "NOISE",+ "links": [+ 13783+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.71",+ "Node name for S&R": "RandomNoise"+ },+ "widgets_values": [+ 42,+ "fixed"+ ]}],"groups": [diff --git a/example_workflows/LTX-2_I2V_Full_wLora.json b/example_workflows/LTX-2_I2V_Full_wLora.jsonindex 4b85342..63b9611 100644--- a/example_workflows/LTX-2_I2V_Full_wLora.json+++ b/example_workflows/LTX-2_I2V_Full_wLora.json@@ -202,45 +202,6 @@"ltx-2-19b-dev.safetensors"]},- {- "id": 5178,- "type": "LTXVGemmaCLIPModelLoader",- "pos": [- -3530.572231483516,- 7128.353572103167- ],- "size": [- 421.93656760943577,- 106- ],- "flags": {},- "order": 3,- "mode": 0,- "inputs": [],- "outputs": [- {- "name": "clip",- "type": "CLIP",- "links": [- 13924,- 13926,- 13952- ]- }- ],- "properties": {- "Node name for S&R": "LTXVGemmaCLIPModelLoader",- "widget_ue_connectable": {- "model_path": true,- "max_length": true- }- },- "widgets_values": [- "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",- "ltx-2-19b-dev.safetensors",- 1024- ]- },{"id": 5173,"type": "LTXVConditioning",@@ -314,7 +275,7 @@115.06840156250018],"flags": {},- "order": 4,+ "order": 3,"mode": 0,"inputs": [],"outputs": [@@ -348,48 +309,6 @@"ltx-2-19b-dev.safetensors"]},- {- "id": 5199,- "type": "LoraLoaderModelOnly",- "pos": [- -3044.221020705583,- 6862.9289547908165- ],- "size": [- 216.56215979270246,- 137.56554105343366- ],- "flags": {- "collapsed": false- },- "order": 16,- "mode": 0,- "inputs": [- {- "name": "model",- "type": "MODEL",- "link": 13954- }- ],- "outputs": [- {- "name": "MODEL",- "type": "MODEL",- "links": [- 13955- ]- }- ],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.3.68",- "Node name for S&R": "LoraLoaderModelOnly"- },- "widgets_values": [- "ltxv/ltx2/ltx-2-19b-distilled-lora-384.safetensors",- 0.6- ]- },{"id": 5182,"type": "LoraLoaderModelOnly",@@ -402,7 +321,7 @@82],"flags": {},- "order": 15,+ "order": 14,"mode": 4,"inputs": [{@@ -516,7 +435,7 @@"flags": {"collapsed": false},- "order": 14,+ "order": 17,"mode": 0,"inputs": [{@@ -599,110 +518,6 @@"color": "#232","bgcolor": "#353"},- {- "id": 5213,- "type": "MarkdownNote",- "pos": [- -3993.0735339452635,- 7184.948009775131- ],- "size": [- 421.80023671152276,- 204.8409142517039- ],- "flags": {- "collapsed": false- },- "order": 5,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Prompting LTX-2",- "properties": {},- "widgets_values": [- "## LTX-2 Prompting Tips\n1. **Core Actions**: Describe events and actions as they occur over time \n2. **Audio**: Describe sounds and dialogue needed for the scene \n3. **Reference Image**: Do not repeat details already present \n4. **Consistency**: Avoid instructions that do not match the reference image, as this will degrade results\n\n"- ],- "color": "#432",- "bgcolor": "#653"- },- {- "id": 5214,- "type": "MarkdownNote",- "pos": [- -3995.19689724344,- 6706.943697375089- ],- "size": [- 421.1303542521987,- 436.3332627074051- ],- "flags": {- "collapsed": false- },- "order": 6,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Model Links",- "properties": {},- "widgets_values": [- "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b.safetensors)\n- [ ltx-2-spatial-upscaler-x2-1.0.safetensors ](https://huggingface.co/Lightricks/LTX-2/tree/main/ltx-2-spatial-upscaler-x2-1.0.safetensors)\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-pt)\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ comfy_gemma_3_12B_it.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b.safetensors\nβ βββ π latent_upscale_models/ \n βββ ltx-2-spatial-upscaler-x2-1.0.safetensors\n```\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"- ],- "color": "#432",- "bgcolor": "#653"- },- {- "id": 5215,- "type": "MarkdownNote",- "pos": [- -2678.84490556659,- 6636.50017724438- ],- "size": [- 240.16187366614236,- 98.41687371924309- ],- "flags": {- "collapsed": false- },- "order": 7,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Video Size",- "properties": {},- "widgets_values": [- "Width & height settings must be divisible by 32 + 1. \nFrame count must be divisible by 8 + 1. \n\n\nRunning with invalid parameters **will not cause errors**. Instead, the flow will silently choose the closest valid parameters. "- ],- "color": "#432",- "bgcolor": "#653"- },- {- "id": 5216,- "type": "MarkdownNote",- "pos": [- -1976.902195401015,- 6320.914024269011- ],- "size": [- 469.5872194653941,- 209.10385276580928- ],- "flags": {- "collapsed": false- },- "order": 8,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "LoRA",- "properties": {},- "widgets_values": [- "# Using LoRAs\n**Ctrl + B to enable**\n\nFor the camera LoRA we recommend setting strength = 1\n\nYou can use LTX [Ready to use camera LoRAs](https://huggingface.co/collections/Lightricks/ltx-2)\n\n\n\n\nUse a second LoRa only when the details are important in the LoRa. \n\n## Training\nWe have made available a full trainer to help you to train your own LoRA. You can [find it here](https://github.com/Lightricks/LTX-2)."- ],- "color": "#432",- "bgcolor": "#653"- },{"id": 5192,"type": "LTXVGemmaEnhancePrompt",@@ -717,7 +532,7 @@"flags": {"collapsed": true},- "order": 17,+ "order": 16,"mode": 0,"inputs": [{@@ -774,7 +589,7 @@58],"flags": {},- "order": 9,+ "order": 4,"mode": 0,"inputs": [],"outputs": [@@ -807,7 +622,7 @@328.2067665578588],"flags": {},- "order": 10,+ "order": 5,"mode": 0,"inputs": [],"outputs": [@@ -843,7 +658,7 @@433.14022877831576],"flags": {},- "order": 11,+ "order": 6,"mode": 0,"inputs": [],"outputs": [@@ -872,68 +687,237 @@]},{- "id": 5189,- "type": "3eaa20c4-5842-4fe4-87df-c0a7e83a6a78",+ "id": 5185,+ "type": "EmptyImage","pos": [- -1379.4257023380126,- 6768.8821355425025+ -2667.561287475645,+ 6824.636229314792],"size": [210,- 334+ 130],"flags": {},- "order": 21,+ "order": 7,"mode": 0,- "inputs": [- {- "label": "model stage 1",- "name": "model_1",- "type": "MODEL",- "link": 13941- },- {- "label": "model stage 2",- "name": "model",- "type": "MODEL",- "link": 13936- },- {- "label": "upscale model",- "name": "upscale_model_1",- "type": "LATENT_UPSCALE_MODEL",- "link": 13958- },- {- "name": "positive",- "type": "CONDITIONING",- "link": 13937- },- {- "name": "negative",- "type": "CONDITIONING",- "link": 13938- },- {- "label": "images",- "name": "images",- "type": "IMAGE",- "link": 13940- },- {- "name": "vae",- "type": "VAE",- "link": 13939- },- {- "label": "audio vae",- "name": "audio_vae",- "type": "VAE",- "link": 13935- },+ "inputs": [],+ "outputs": [{- "label": "empty latent image",- "name": "image_1",+ "name": "IMAGE",+ "type": "IMAGE",+ "links": [+ 13943+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "EmptyImage"+ },+ "widgets_values": [+ 1280,+ 704,+ 1,+ 0+ ]+ },+ {+ "id": 5215,+ "type": "MarkdownNote",+ "pos": [+ -2678.84490556659,+ 6636.50017724438+ ],+ "size": [+ 240.16187366614236,+ 98.41687371924309+ ],+ "flags": {+ "collapsed": false+ },+ "order": 8,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Video Size",+ "properties": {},+ "widgets_values": [+ "Width & height settings must be divisible by 32 + 1. \nFrame count must be divisible by 8 + 1. \n\n\nRunning with invalid parameters **will not cause errors**. Instead, the flow will silently choose the closest valid parameters. "+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 5178,+ "type": "LTXVGemmaCLIPModelLoader",+ "pos": [+ -3530.572231483516,+ 7128.353572103167+ ],+ "size": [+ 421.93656760943577,+ 106+ ],+ "flags": {},+ "order": 9,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "name": "clip",+ "type": "CLIP",+ "links": [+ 13924,+ 13926,+ 13952+ ]+ }+ ],+ "properties": {+ "Node name for S&R": "LTXVGemmaCLIPModelLoader",+ "widget_ue_connectable": {+ "model_path": true,+ "max_length": true+ }+ },+ "widgets_values": [+ "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",+ "ltx-2-19b-dev.safetensors",+ 1024+ ]+ },+ {+ "id": 5199,+ "type": "LoraLoaderModelOnly",+ "pos": [+ -3044.221020705583,+ 6862.9289547908165+ ],+ "size": [+ 216.56215979270246,+ 137.56554105343366+ ],+ "flags": {+ "collapsed": false+ },+ "order": 15,+ "mode": 0,+ "inputs": [+ {+ "name": "model",+ "type": "MODEL",+ "link": 13954+ }+ ],+ "outputs": [+ {+ "name": "MODEL",+ "type": "MODEL",+ "links": [+ 13955+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.68",+ "Node name for S&R": "LoraLoaderModelOnly"+ },+ "widgets_values": [+ "ltx-2-19b-distilled-lora-384.safetensors",+ 0.6+ ]+ },+ {+ "id": 5216,+ "type": "MarkdownNote",+ "pos": [+ -1976.902195401015,+ 6320.914024269011+ ],+ "size": [+ 469.5872194653941,+ 209.10385276580928+ ],+ "flags": {+ "collapsed": false+ },+ "order": 10,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "LoRA",+ "properties": {},+ "widgets_values": [+ "# Using LoRAs\n**Ctrl + B to enable**\n\nFor the camera LoRA we recommend setting strength = 1\n\nYou can use LTX [Ready to use camera LoRAs](https://huggingface.co/collections/Lightricks/ltx-2)\n\n\n\n\nUse a second LoRa only when the details are important in the LoRa. \n\n## Training\nWe have made available a full trainer to help you to train your own LoRA. You can [find it here](https://github.com/Lightricks/LTX-2)."+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 5189,+ "type": "3eaa20c4-5842-4fe4-87df-c0a7e83a6a78",+ "pos": [+ -1379.4257023380126,+ 6768.8821355425025+ ],+ "size": [+ 210,+ 334+ ],+ "flags": {},+ "order": 21,+ "mode": 0,+ "inputs": [+ {+ "label": "model stage 1",+ "name": "model_1",+ "type": "MODEL",+ "link": 13941+ },+ {+ "label": "model stage 2",+ "name": "model",+ "type": "MODEL",+ "link": 13936+ },+ {+ "label": "upscale model",+ "name": "upscale_model_1",+ "type": "LATENT_UPSCALE_MODEL",+ "link": 13958+ },+ {+ "name": "positive",+ "type": "CONDITIONING",+ "link": 13937+ },+ {+ "name": "negative",+ "type": "CONDITIONING",+ "link": 13938+ },+ {+ "label": "images",+ "name": "images",+ "type": "IMAGE",+ "link": 13940+ },+ {+ "name": "vae",+ "type": "VAE",+ "link": 13939+ },+ {+ "label": "audio vae",+ "name": "audio_vae",+ "type": "VAE",+ "link": 13935+ },+ {+ "label": "empty latent image",+ "name": "image_1","type": "IMAGE","link": 13943},@@ -1016,40 +1000,56 @@]},{- "id": 5185,- "type": "EmptyImage",+ "id": 5213,+ "type": "MarkdownNote","pos": [- -2667.561287475645,- 6824.636229314792+ -3994.7241915629565,+ 7355.912237736982],"size": [- 210,- 130+ 421.80023671152276,+ 204.8409142517039],- "flags": {},- "order": 12,+ "flags": {+ "collapsed": false+ },+ "order": 11,"mode": 0,"inputs": [],- "outputs": [- {- "name": "IMAGE",- "type": "IMAGE",- "links": [- 13943- ]- }+ "outputs": [],+ "title": "Prompting LTX-2",+ "properties": {},+ "widgets_values": [+ "## LTX-2 Prompting Tips\n1. **Core Actions**: Describe events and actions as they occur over time \n2. **Audio**: Describe sounds and dialogue needed for the scene \n3. **Reference Image**: Do not repeat details already present \n4. **Consistency**: Avoid instructions that do not match the reference image, as this will degrade results\n\n"],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "EmptyImage"+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 5214,+ "type": "MarkdownNote",+ "pos": [+ -3995.19689724344,+ 6706.943697375089+ ],+ "size": [+ 423.19410866682347,+ 606.8676527747002+ ],+ "flags": {+ "collapsed": false},- "widgets_values": [- 1280,- 704,- 1,- 0- ]+ "order": 12,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Model Links",+ "properties": {},+ "widgets_values": [+ "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b-dev.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-dev.safetensors)\n- [ ltx-2-19b-distilled-lora-384.safetensors ](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled-lora-384.safetensors)\n- [ ltx-2-spatial-upscaler-x2-1.0.safetensors ](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-spatial-upscaler-x2-1.0.safetensors)\n\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized)\n\nPlease download the entire folder - \n\n- Run: \n 1. cd models/text_encoders\n 2. git clone https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized\n\n*Full documentation can be found [here](https://docs.ltx.video/open-source-model/integration-tools/comfy-ui#text-encoder)\n\n**Sampler**\n\n- [RES4LYF](https://github.com/ClownsharkBatwing/RES4LYF)\n\n\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b-dev.safetensors\nβ βββ π loras/\nβ β βββ ltx-2-19b-distilled-lora-384.safetensors\nβ βββ π latent_upscale_models/ \n βββ ltx-2-spatial-upscaler-x2-1.0.safetensors\n```\n\n**Assets**\n- [base model image](https://github.com/Lightricks/ComfyUI-LTXVideo/blob/master/example_workflows/assets/base%20model%20image.png)\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"+ ],+ "color": "#432",+ "bgcolor": "#653"}],"links": [@@ -1368,10 +1368,10 @@"flags": {},"nodes": [5188,- 5178,5176,- 5199,- 5212+ 5212,+ 5178,+ 5199]},{@@ -1398,7 +1398,7 @@"version": 1,"state": {"lastGroupId": 21,- "lastNodeId": 5247,+ "lastNodeId": 5251,"lastLinkId": 14012,"lastRerouteId": 0},@@ -1647,7 +1647,7 @@46],"flags": {},- "order": 15,+ "order": 17,"mode": 0,"inputs": [{@@ -1694,7 +1694,7 @@130],"flags": {},- "order": 10,+ "order": 12,"mode": 0,"inputs": [{@@ -1763,7 +1763,7 @@158.23828815113302],"flags": {},- "order": 16,+ "order": 18,"mode": 0,"inputs": [{@@ -1865,7 +1865,7 @@46],"flags": {},- "order": 11,+ "order": 13,"mode": 0,"inputs": [{@@ -1899,61 +1899,6 @@},"widgets_values": []},- {- "id": 5069,- "type": "GetImageSize",- "pos": [- -2024.3908648247834,- 6541.936259651618- ],- "size": [- 140,- 66- ],- "flags": {- "collapsed": false- },- "order": 4,- "mode": 0,- "inputs": [- {- "localized_name": "image",- "name": "image",- "type": "IMAGE",- "link": 13730- }- ],- "outputs": [- {- "localized_name": "width",- "name": "width",- "type": "INT",- "links": [- 13846- ]- },- {- "localized_name": "height",- "name": "height",- "type": "INT",- "links": [- 13847- ]- },- {- "localized_name": "batch_size",- "name": "batch_size",- "type": "INT",- "links": []- }- ],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "GetImageSize"- },- "widgets_values": []- },{"id": 5236,"type": "LTXVScheduler",@@ -1968,7 +1913,7 @@"flags": {"collapsed": false},- "order": 18,+ "order": 20,"mode": 0,"inputs": [{@@ -2014,7 +1959,7 @@114],"flags": {},- "order": 12,+ "order": 14,"mode": 0,"inputs": [{@@ -2069,7 +2014,7 @@"flags": {"collapsed": false},- "order": 19,+ "order": 21,"mode": 0,"inputs": [{@@ -2122,7 +2067,7 @@"flags": {"collapsed": false},- "order": 8,+ "order": 10,"mode": 0,"inputs": [{@@ -2169,7 +2114,7 @@"flags": {"collapsed": false},- "order": 13,+ "order": 15,"mode": 0,"inputs": [{@@ -2202,82 +2147,6 @@"fixed"]},- {- "id": 5109,- "type": "KSamplerSelect",- "pos": [- -966.317767074268,- 6401.320879135822- ],- "size": [- 210,- 74- ],- "flags": {},- "order": 1,- "mode": 0,- "inputs": [],- "outputs": [- {- "localized_name": "SAMPLER",- "name": "SAMPLER",- "type": "SAMPLER",- "links": [- 13785- ]- }- ],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "KSamplerSelect"- },- "widgets_values": [- "res_2s"- ]- },- {- "id": 5075,- "type": "ImageScaleBy",- "pos": [- -2034.64249182114,- 6414.9725819876285- ],- "size": [- 210,- 82- ],- "flags": {},- "order": 5,- "mode": 0,- "inputs": [- {- "localized_name": "image",- "name": "image",- "type": "IMAGE",- "link": 13731- }- ],- "outputs": [- {- "localized_name": "IMAGE",- "name": "IMAGE",- "type": "IMAGE",- "links": [- 13730- ]- }- ],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "ImageScaleBy"- },- "widgets_values": [- "bicubic",- 0.5- ]- },{"id": 5238,"type": "ImpactExecutionOrderController",@@ -2290,7 +2159,7 @@47.506006012050875],"flags": {},- "order": 20,+ "order": 22,"mode": 0,"inputs": [{@@ -2347,7 +2216,7 @@"flags": {"collapsed": false},- "order": 17,+ "order": 19,"mode": 0,"inputs": [{@@ -2410,7 +2279,7 @@"flags": {"collapsed": true},- "order": 22,+ "order": 24,"mode": 0,"inputs": [{@@ -2439,50 +2308,6 @@33]},- {- "id": 5239,- "type": "ResizeImagesByLongerEdge",- "pos": [- -1990.9408758658353,- 6790.223639374309- ],- "size": [- 303.6109375,- 58- ],- "flags": {- "collapsed": true- },- "order": 21,- "mode": 0,- "inputs": [- {- "localized_name": "images",- "name": "images",- "type": "IMAGE",- "link": 13994- }- ],- "outputs": [- {- "localized_name": "images",- "name": "images",- "type": "IMAGE",- "links": [- 13993,- 14002- ]- }- ],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "ResizeImagesByLongerEdge"- },- "widgets_values": [- 1536- ]- },{"id": 5100,"type": "SamplerCustomAdvanced",@@ -2495,7 +2320,7 @@106],"flags": {},- "order": 7,+ "order": 9,"mode": 0,"inputs": [{@@ -2564,7 +2389,7 @@46],"flags": {},- "order": 9,+ "order": 11,"mode": 0,"inputs": [{@@ -2611,7 +2436,7 @@58],"flags": {},- "order": 2,+ "order": 1,"mode": 0,"inputs": [],"outputs": [@@ -2645,7 +2470,7 @@98],"flags": {},- "order": 6,+ "order": 8,"mode": 0,"inputs": [{@@ -2667,57 +2492,23 @@"link": 13873}],- "outputs": [- {- "localized_name": "GUIDER",- "name": "GUIDER",- "type": "GUIDER",- "links": [- 13769- ]- }- ],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "CFGGuider"- },- "widgets_values": [- 1- ]- },- {- "id": 5099,- "type": "KSamplerSelect",- "pos": [- 358.5710759382591,- 6424.6268458653085- ],- "size": [- 210,- 74- ],- "flags": {},- "order": 3,- "mode": 0,- "inputs": [],- "outputs": [- {- "localized_name": "SAMPLER",- "name": "SAMPLER",- "type": "SAMPLER",+ "outputs": [+ {+ "localized_name": "GUIDER",+ "name": "GUIDER",+ "type": "GUIDER","links": [- 13770+ 13769]}],"properties": {"cnr_id": "comfy-core","ver": "0.3.71",- "Node name for S&R": "KSamplerSelect"+ "Node name for S&R": "CFGGuider"},"widgets_values": [- "res_2s"+ 1]},{@@ -2732,7 +2523,7 @@46],"flags": {},- "order": 14,+ "order": 16,"mode": 0,"inputs": [{@@ -2777,7 +2568,7 @@122],"flags": {},- "order": 24,+ "order": 26,"mode": 0,"inputs": [{@@ -2831,7 +2622,7 @@66],"flags": {},- "order": 25,+ "order": 27,"mode": 0,"inputs": [{@@ -2882,7 +2673,7 @@122],"flags": {},- "order": 23,+ "order": 25,"mode": 0,"inputs": [{@@ -2932,6 +2723,267 @@0.6,false]+ },+ {+ "id": 5251,+ "type": "MarkdownNote",+ "pos": [+ 358.90851475055354,+ 6284.424034545774+ ],+ "size": [+ 210,+ 88+ ],+ "flags": {+ "collapsed": false+ },+ "order": 2,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Sampler",+ "properties": {},+ "widgets_values": [+ "We recommend using res_2s. \nhttps://github.com/ClownsharkBatwing/RES4LYF\n\nPlease make sure to install RES4LYF"+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 5250,+ "type": "MarkdownNote",+ "pos": [+ -965.2104305619457,+ 6261.107393920771+ ],+ "size": [+ 210,+ 88+ ],+ "flags": {+ "collapsed": false+ },+ "order": 3,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Sampler",+ "properties": {},+ "widgets_values": [+ "We recommend using res_2s. \nhttps://github.com/ClownsharkBatwing/RES4LYF\n\nPlease make sure to install RES4LYF"+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 5075,+ "type": "ImageScaleBy",+ "pos": [+ -2034.64249182114,+ 6414.9725819876285+ ],+ "size": [+ 210,+ 82+ ],+ "flags": {},+ "order": 7,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "image",+ "name": "image",+ "type": "IMAGE",+ "link": 13731+ }+ ],+ "outputs": [+ {+ "localized_name": "IMAGE",+ "name": "IMAGE",+ "type": "IMAGE",+ "links": [+ 13730+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "ImageScaleBy"+ },+ "widgets_values": [+ "bicubic",+ 0.5+ ]+ },+ {+ "id": 5069,+ "type": "GetImageSize",+ "pos": [+ -2024.3908648247834,+ 6541.936259651618+ ],+ "size": [+ 140,+ 66+ ],+ "flags": {+ "collapsed": false+ },+ "order": 6,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "image",+ "name": "image",+ "type": "IMAGE",+ "link": 13730+ }+ ],+ "outputs": [+ {+ "localized_name": "width",+ "name": "width",+ "type": "INT",+ "links": [+ 13846+ ]+ },+ {+ "localized_name": "height",+ "name": "height",+ "type": "INT",+ "links": [+ 13847+ ]+ },+ {+ "localized_name": "batch_size",+ "name": "batch_size",+ "type": "INT",+ "links": []+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "GetImageSize"+ },+ "widgets_values": []+ },+ {+ "id": 5239,+ "type": "ResizeImagesByLongerEdge",+ "pos": [+ -1990.9408758658353,+ 6790.223639374309+ ],+ "size": [+ 303.6109375,+ 58+ ],+ "flags": {+ "collapsed": true+ },+ "order": 23,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "images",+ "name": "images",+ "type": "IMAGE",+ "link": 13994+ }+ ],+ "outputs": [+ {+ "localized_name": "images",+ "name": "images",+ "type": "IMAGE",+ "links": [+ 13993,+ 14002+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "ResizeImagesByLongerEdge"+ },+ "widgets_values": [+ 1536+ ]+ },+ {+ "id": 5109,+ "type": "KSamplerSelect",+ "pos": [+ -966.317767074268,+ 6401.320879135822+ ],+ "size": [+ 210,+ 74+ ],+ "flags": {},+ "order": 4,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "localized_name": "SAMPLER",+ "name": "SAMPLER",+ "type": "SAMPLER",+ "links": [+ 13785+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.71",+ "Node name for S&R": "KSamplerSelect"+ },+ "widgets_values": [+ "res_2s"+ ]+ },+ {+ "id": 5099,+ "type": "KSamplerSelect",+ "pos": [+ 358.5710759382591,+ 6424.6268458653085+ ],+ "size": [+ 210,+ 74+ ],+ "flags": {},+ "order": 5,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "localized_name": "SAMPLER",+ "name": "SAMPLER",+ "type": "SAMPLER",+ "links": [+ 13770+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.71",+ "Node name for S&R": "KSamplerSelect"+ },+ "widgets_values": [+ "res_2s"+ ]}],"groups": [diff --git a/example_workflows/LTX-2_ICLoRA_All_Distilled.json b/example_workflows/LTX-2_ICLoRA_All_Distilled.jsonindex d6d3cc1..2395d9d 100644--- a/example_workflows/LTX-2_ICLoRA_All_Distilled.json+++ b/example_workflows/LTX-2_ICLoRA_All_Distilled.json@@ -37,24 +37,50 @@]},{- "id": 263,+ "id": 274,+ "type": "MarkdownNote",+ "pos": [+ -3705.3723898360204,+ 4198.991136202638+ ],+ "size": [+ 271.8700736604794,+ 105.6563141843053+ ],+ "flags": {+ "collapsed": false+ },+ "order": 0,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Video Size",+ "properties": {},+ "widgets_values": [+ "Width & height settings must be divisible by 32 + 1. \n\nRunning with invalid parameters **will not cause errors**. Instead, the flow will silently choose the closest valid parameters. "+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 264,"type": "SaveVideo","pos": [- -3300.791002295813,- 4850.00281731496+ -3300.5108091503857,+ 4344.231267080603],"size": [- 407.5231522848858,- 444.0448474342347+ 394.3820764961033,+ 441.7206085664038],"flags": {},- "order": 11,- "mode": 4,+ "order": 10,+ "mode": 0,"inputs": [{"name": "video","type": "VIDEO",- "link": 454+ "link": 455}],"outputs": [],@@ -69,212 +95,169 @@]},{- "id": 272,- "type": "MarkdownNote",+ "id": 201,+ "type": "PrimitiveBoolean","pos": [- -4750.121632656192,- 4942.588985581988+ -4281.760208043995,+ 5035.499737380581],"size": [- 449.98823755897365,- 205.15008103687887+ 384.03006973056927,+ 58],- "flags": {- "collapsed": false- },- "order": 0,+ "flags": {},+ "order": 1,"mode": 0,"inputs": [],- "outputs": [],- "title": "Prompting LTX-2",- "properties": {},- "widgets_values": [- "## LTX-2 Prompting Tips\n1. **Core Actions**: Describe events and actions as they occur over time \n2. **Audio**: Describe sounds and dialogue needed for the scene \n3. **Reference Image**: Do not repeat details already present \n4. **Consistency**: Avoid instructions that do not match the reference image, as this will degrade results\n"- ],- "color": "#432",- "bgcolor": "#653"- },- {- "id": 273,- "type": "MarkdownNote",- "pos": [- -4755.900143250212,- 4452.350555323921- ],- "size": [- 452.9937955776454,- 446.01542081507796+ "outputs": [+ {+ "name": "BOOLEAN",+ "type": "BOOLEAN",+ "links": [+ 363,+ 397,+ 433+ ]+ }],- "flags": {- "collapsed": false+ "title": "Text Only",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "PrimitiveBoolean"},- "order": 1,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Model Links",- "properties": {},"widgets_values": [- "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b-distilled.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled.safetensors)\n- [ ltx-2-spatial-upscaler-x2-1.0.safetensors ](https://huggingface.co/Lightricks/LTX-2/tree/main/ltx-2-spatial-upscaler-x2-1.0.safetensors)\n- [ IC LoRA - Canny ](https://huggingface.co/Lightricks/LTX-2-19b-IC-LoRA-Canny-Control/tree/main/ltx-2-19b-ic-lora-canny-control.safetensors)\n- [ IC LoRA - Depth ](https://huggingface.co/Lightricks/LTX-2-19b-IC-LoRA-Depth-Control/tree/main/ltx-2-19b-ic-lora-depth-control.safetensors)\n- [ IC LoRA - Pose ](https://huggingface.co/Lightricks/LTX-2-19b-IC-LoRA-Pose-Control/tree/main/ltx-2-19b-ic-lora-pose-control.safetensors)\n\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-pt)\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ comfy_gemma_3_12B_it.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b-distilled.safetensors\nβ βββ π latent_upscale_models/ \nβ β βββ ltx-2-spatial-upscaler-x2-1.0.safetensors\nβ βββ π loras/ \nβ βββ ltx-2-19b-ic-lora-canny-control.safetensors\nβ βββ ltx-2-19b-ic-lora-depth-control.safetensors\nβ βββ ltx-2-19b-ic-lora-pose-control.safetensors\n```\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"- ],- "color": "#432",- "bgcolor": "#653"+ false+ ]},{- "id": 274,- "type": "MarkdownNote",+ "id": 200,+ "type": "LoadImage","pos": [- -3705.3723898360204,- 4198.991136202638+ -4285.129479933403,+ 5143.939169472896],"size": [- 271.8700736604794,- 105.6563141843053+ 400.4874419937255,+ 378.7916882359277],- "flags": {- "collapsed": false- },+ "flags": {},"order": 2,"mode": 0,"inputs": [],- "outputs": [],- "title": "Video Size",- "properties": {},- "widgets_values": [- "Width & height settings must be divisible by 32 + 1. \n\nRunning with invalid parameters **will not cause errors**. Instead, the flow will silently choose the closest valid parameters. "- ],- "color": "#432",- "bgcolor": "#653"- },- {- "id": 271,- "type": "MarkdownNote",- "pos": [- -4514.828909451778,- 5344.275812975885- ],- "size": [- 210,- 88+ "outputs": [+ {+ "name": "IMAGE",+ "type": "IMAGE",+ "links": [+ 450,+ 451,+ 452+ ]+ },+ {+ "name": "MASK",+ "type": "MASK",+ "links": null+ }],- "flags": {- "collapsed": false+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "LoadImage"},- "order": 3,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Important",- "properties": {},"widgets_values": [- "# Always load Image"- ],- "color": "#432",- "bgcolor": "#653"+ "buildings ff.png",+ "image"+ ]},{- "id": 240,- "type": "b83ac947-e174-4a8e-b0c1-f7c3b8f00419",+ "id": 263,+ "type": "SaveVideo","pos": [- -3775.456558964413,- 4846.109439002414+ -3300.791002295813,+ 4850.00281731496],"size": [- 428.1032473412265,- 462.6733832580858+ 407.5231522848858,+ 444.0448474342347],"flags": {},- "order": 8,+ "order": 11,"mode": 4,"inputs": [- {- "name": "switch",- "type": "BOOLEAN",- "widget": {- "name": "switch"- },- "link": 397- },{"name": "video","type": "VIDEO",- "link": 398- },- {- "label": "first frame",- "name": "image_1",- "type": "IMAGE",- "link": 451+ "link": 454}],+ "outputs": [],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1"+ },+ "widgets_values": [+ "video/ComfyUI",+ "auto",+ "auto"+ ]+ },+ {+ "id": 164,+ "type": "LoadVideo",+ "pos": [+ -4273.650112839631,+ 4496.243204253725+ ],+ "size": [+ 386.798828125,+ 458.5515914425977+ ],+ "flags": {},+ "order": 3,+ "mode": 0,+ "inputs": [],"outputs": [{- "label": "video","name": "VIDEO","type": "VIDEO","links": [- 454+ 362,+ 398,+ 432]}],"properties": {- "proxyWidgets": [- [- "-1",- "height"- ],- [- "229",- "value"- ],- [- "-1",- "width"- ],- [- "239",- "noise_seed"- ],- [- "239",- "461: control_after_generate"- ],- [- "-1",- "switch"- ]- ],"cnr_id": "comfy-core",- "ver": "0.5.1"+ "ver": "0.5.1",+ "Node name for S&R": "LoadVideo"},"widgets_values": [- 1920,- null,- 1920,- null,- null,- true+ "buildings.mp4",+ "image"]},{- "id": 256,- "type": "3ad0b41c-8c47-4e10-a53e-ed340cc26b5f",+ "id": 224,+ "type": "2dc75cab-e957-4437-a5bb-2afb0ea00516","pos": [- -3774.406825396875,- 5370.867781047884+ -3776.2387424832514,+ 4340.026662390727],"size": [- 425.6797091343742,- 459.5094361285983+ 430.6110937678254,+ 456.14251880590064],"flags": {},- "order": 9,- "mode": 4,+ "order": 7,+ "mode": 0,"inputs": [{"name": "video","type": "VIDEO",- "link": 432+ "link": 362},{"name": "switch",@@ -282,13 +265,13 @@"widget": {"name": "switch"},- "link": 433+ "link": 363},{"label": "first frame","name": "image_1","type": "IMAGE",- "link": 452+ "link": 450}],"outputs": [@@ -297,18 +280,14 @@"name": "VIDEO","type": "VIDEO","links": [- 456+ 455]}],"properties": {"proxyWidgets": [[- "-1",- "height"- ],- [- "244",+ "212","value"],[@@ -316,11 +295,15 @@"width"],[- "253",+ "-1",+ "height"+ ],+ [+ "223","noise_seed"],[- "253",+ "223","461: control_after_generate"],[@@ -332,101 +315,111 @@"ver": "0.5.1"},"widgets_values": [- 1920,null,1920,+ 1088,null,null,true]},{- "id": 264,- "type": "SaveVideo",+ "id": 273,+ "type": "MarkdownNote","pos": [- -3300.5108091503857,- 4344.231267080603+ -4785.564205750212,+ 4455.096649073921],"size": [- 394.3820764961033,- 441.7206085664038+ 474.7453652124491,+ 605.585189911063],- "flags": {},- "order": 10,+ "flags": {+ "collapsed": false+ },+ "order": 4,"mode": 0,- "inputs": [- {- "name": "video",- "type": "VIDEO",- "link": 455- }- ],+ "inputs": [],"outputs": [],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1"+ "title": "Model Links",+ "properties": {},+ "widgets_values": [+ "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b-distilled.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled.safetensors)\n- [ ltx-2-spatial-upscaler-x2-1.0.safetensors ](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-spatial-upscaler-x2-1.0.safetensors)\n- [ IC LoRA - Canny ](https://huggingface.co/Lightricks/LTX-2-19b-IC-LoRA-Canny-Control/resolve/main/ltx-2-19b-ic-lora-canny-control.safetensors)\n- [ IC LoRA - Depth ](https://huggingface.co/Lightricks/LTX-2-19b-IC-LoRA-Depth-Control/resolve/main/ltx-2-19b-ic-lora-depth-control.safetensors)\n- [ IC LoRA - Pose ](https://huggingface.co/Lightricks/LTX-2-19b-IC-LoRA-Pose-Control/resolve/main/ltx-2-19b-ic-lora-pose-control.safetensors)\n\n\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized)\n\nPlease download the entire folder - \n\n- Run: \n 1. cd models/text_encoders\n 2. git clone https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized\n\n*Full documentation can be found [here](https://docs.ltx.video/open-source-model/integration-tools/comfy-ui#text-encoder)\n\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b-distilled.safetensors\nβ βββ π latent_upscale_models/ \nβ β βββ ltx-2-spatial-upscaler-x2-1.0.safetensors\nβ βββ π loras/ \nβ βββ ltx-2-19b-ic-lora-canny-control.safetensors\nβ βββ ltx-2-19b-ic-lora-depth-control.safetensors\nβ βββ ltx-2-19b-ic-lora-pose-control.safetensors\n```\n**Assets**\n- [buildings.mp4 (input video)](https://github.com/Lightricks/ComfyUI-LTXVideo/blob/master/example_workflows/assets/buildings.mp4)\n- [buildings ff (first frame)](https://github.com/Lightricks/ComfyUI-LTXVideo/blob/master/example_workflows/assets/buildings%20ff.png)\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 271,+ "type": "MarkdownNote",+ "pos": [+ -4517.278638109156,+ 5357.133250216258+ ],+ "size": [+ 210,+ 88+ ],+ "flags": {+ "collapsed": false},+ "order": 5,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Important",+ "properties": {},"widgets_values": [- "video/ComfyUI",- "auto",- "auto"- ]+ "# Always load Image"+ ],+ "color": "#432",+ "bgcolor": "#653"},{- "id": 201,- "type": "PrimitiveBoolean",+ "id": 272,+ "type": "MarkdownNote","pos": [- -4281.760208043995,- 5035.499737380581+ -4782.341673813574,+ 5107.78314157236],"size": [- 384.03006973056927,- 58+ 471.21870630897365,+ 207.61883103687887],- "flags": {},- "order": 4,+ "flags": {+ "collapsed": false+ },+ "order": 6,"mode": 0,"inputs": [],- "outputs": [- {- "name": "BOOLEAN",- "type": "BOOLEAN",- "links": [- 363,- 397,- 433- ]- }- ],- "title": "Text Only",- "properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "PrimitiveBoolean"- },+ "outputs": [],+ "title": "Prompting LTX-2",+ "properties": {},"widgets_values": [- false- ]+ "## LTX-2 Prompting Tips\n1. **Core Actions**: Describe events and actions as they occur over time \n2. **Audio**: Describe sounds and dialogue needed for the scene \n3. **Reference Image**: Do not repeat details already present \n4. **Consistency**: Avoid instructions that do not match the reference image, as this will degrade results\n"+ ],+ "color": "#432",+ "bgcolor": "#653"},{- "id": 224,- "type": "2dc75cab-e957-4437-a5bb-2afb0ea00516",+ "id": 256,+ "type": "3ad0b41c-8c47-4e10-a53e-ed340cc26b5f","pos": [- -3776.2387424832514,- 4340.026662390727+ -3774.406825396875,+ 5370.867781047884],"size": [- 430.6110937678254,- 456.14251880590064+ 425.6797091343742,+ 459.5094361285983],"flags": {},- "order": 7,- "mode": 0,+ "order": 9,+ "mode": 4,"inputs": [{"name": "video","type": "VIDEO",- "link": 362+ "link": 432},{"name": "switch",@@ -434,13 +427,13 @@"widget": {"name": "switch"},- "link": 363+ "link": 433},{"label": "first frame","name": "image_1","type": "IMAGE",- "link": 450+ "link": 452}],"outputs": [@@ -449,14 +442,14 @@"name": "VIDEO","type": "VIDEO","links": [- 455+ 456]}],"properties": {"proxyWidgets": [[- "212",+ "244","value"],[@@ -468,11 +461,11 @@"height"],[- "223",+ "253","noise_seed"],[- "223",+ "253","461: control_after_generate"],[@@ -493,80 +486,87 @@]},{- "id": 200,- "type": "LoadImage",+ "id": 240,+ "type": "b83ac947-e174-4a8e-b0c1-f7c3b8f00419","pos": [- -4285.129479933403,- 5143.939169472896+ -3775.456558964413,+ 4846.109439002414],"size": [- 400.4874419937255,- 378.7916882359277+ 428.1032473412265,+ 462.6733832580858],"flags": {},- "order": 5,- "mode": 0,- "inputs": [],- "outputs": [+ "order": 8,+ "mode": 4,+ "inputs": [{- "name": "IMAGE",- "type": "IMAGE",- "links": [- 450,- 451,- 452- ]+ "name": "switch",+ "type": "BOOLEAN",+ "widget": {+ "name": "switch"+ },+ "link": 397},{- "name": "MASK",- "type": "MASK",- "links": null+ "name": "video",+ "type": "VIDEO",+ "link": 398+ },+ {+ "label": "first frame",+ "name": "image_1",+ "type": "IMAGE",+ "link": 451}],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "LoadImage"- },- "widgets_values": [- "buildings ff.png",- "image"- ]- },- {- "id": 164,- "type": "LoadVideo",- "pos": [- -4273.650112839631,- 4496.243204253725- ],- "size": [- 386.798828125,- 458.5515914425977- ],- "flags": {},- "order": 6,- "mode": 0,- "inputs": [],"outputs": [{+ "label": "video","name": "VIDEO","type": "VIDEO","links": [- 362,- 398,- 432+ 454]}],"properties": {+ "proxyWidgets": [+ [+ "229",+ "value"+ ],+ [+ "-1",+ "width"+ ],+ [+ "-1",+ "height"+ ],+ [+ "239",+ "noise_seed"+ ],+ [+ "239",+ "461: control_after_generate"+ ],+ [+ "-1",+ "switch"+ ]+ ],"cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "LoadVideo"+ "ver": "0.5.1"},"widgets_values": [- "buildings.mp4",- "image"+ null,+ 1920,+ 1088,+ null,+ null,+ true]}],@@ -3709,7 +3709,7 @@"state": {"lastGroupId": 31,"lastNodeId": 636,- "lastLinkId": 1320,+ "lastLinkId": 1321,"lastRerouteId": 0},"revision": 0,@@ -3745,7 +3745,7 @@"label": "model stage 1","pos": [-5711.57487156867,- 3637.6135133757766+ 3617.6135133757766]},{@@ -3760,7 +3760,7 @@"label": "model stage 2","pos": [-5711.57487156867,- 3717.6135133757766+ 3637.6135133757766]},{@@ -3773,7 +3773,7 @@"label": "upscale model","pos": [-5711.57487156867,- 3877.6135133757766+ 3657.6135133757766]},{@@ -3786,7 +3786,7 @@"localized_name": "positive","pos": [-5711.57487156867,- 3737.6135133757766+ 3677.6135133757766]},{@@ -3799,7 +3799,7 @@"localized_name": "negative","pos": [-5711.57487156867,- 3757.6135133757766+ 3697.6135133757766]},{@@ -3818,7 +3818,7 @@"label": "VAE","pos": [-5711.57487156867,- 3697.6135133757766+ 3717.6135133757766]},{@@ -3834,7 +3834,7 @@"label": "audio VAE","pos": [-5711.57487156867,- 3657.6135133757766+ 3737.6135133757766]},{@@ -3848,7 +3848,7 @@"label": "first frame","pos": [-5711.57487156867,- 3797.6135133757766+ 3757.6135133757766]},{@@ -3862,7 +3862,7 @@"label": "frame rate","pos": [-5711.57487156867,- 3677.6135133757766+ 3777.6135133757766]},{@@ -3878,7 +3878,7 @@"shape": 7,"pos": [-5711.57487156867,- 3777.6135133757766+ 3797.6135133757766]},{@@ -3891,7 +3891,7 @@],"pos": [-5711.57487156867,- 3837.6135133757766+ 3817.6135133757766]},{@@ -3904,7 +3904,7 @@],"pos": [-5711.57487156867,- 3857.6135133757766+ 3837.6135133757766]},{@@ -3917,7 +3917,7 @@"localized_name": "image","pos": [-5711.57487156867,- 3617.6135133757766+ 3857.6135133757766]},{@@ -3930,7 +3930,7 @@"label": "noise seed","pos": [-5711.57487156867,- 3817.6135133757766+ 3877.6135133757766]},{@@ -5047,7 +5047,7 @@"localized_name": "images","name": "images","type": "IMAGE",- "link": 1259+ "link": 1321}],"outputs": [@@ -5117,8 +5117,7 @@"name": "IMAGE","type": "IMAGE","links": [- 1226,- 1259+ 1226]}],@@ -5131,7 +5130,7 @@"widgets_values": ["bicubic",1920,- 1920,+ 1088,"center"]},@@ -5181,65 +5180,22 @@"name": "IMAGE","type": "IMAGE","links": [- 1223,- 1238- ]- }- ],- "title": "Upscale FF to Video Size",- "properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "ImageScale"- },- "widgets_values": [- "bicubic",- 1920,- 1088,- "disabled"- ]- },- {- "id": 587,- "type": "ImageScaleBy",- "pos": [- -4981.92269765682,- 3714.861944166483- ],- "size": [- 210,- 82- ],- "flags": {},- "order": 28,- "mode": 4,- "inputs": [- {- "localized_name": "image",- "name": "image",- "type": "IMAGE",- "link": 1226- }- ],- "outputs": [- {- "localized_name": "IMAGE",- "name": "IMAGE",- "type": "IMAGE",- "links": [- 1229+ 1223,+ 1238]}],- "title": "Upscale Video to Stage 1",+ "title": "Upscale FF to Video Size","properties": {"cnr_id": "comfy-core","ver": "0.5.1",- "Node name for S&R": "ImageScaleBy"+ "Node name for S&R": "ImageScale"},"widgets_values": ["bicubic",- 0.5+ 1920,+ 1088,+ "disabled"]},{@@ -5425,7 +5381,7 @@"widgets_values": ["bicubic",1920,- 1920,+ 1088,"center"]},@@ -6074,6 +6030,50 @@"Node name for S&R": "ImpactExecutionOrderController"},"widgets_values": []+ },+ {+ "id": 587,+ "type": "ImageScaleBy",+ "pos": [+ -4981.92269765682,+ 3714.861944166483+ ],+ "size": [+ 210,+ 82+ ],+ "flags": {},+ "order": 28,+ "mode": 4,+ "inputs": [+ {+ "localized_name": "image",+ "name": "image",+ "type": "IMAGE",+ "link": 1226+ }+ ],+ "outputs": [+ {+ "localized_name": "IMAGE",+ "name": "IMAGE",+ "type": "IMAGE",+ "links": [+ 1229,+ 1321+ ]+ }+ ],+ "title": "Upscale Video to Stage 1",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "ImageScaleBy"+ },+ "widgets_values": [+ "bicubic",+ 0.5+ ]}],"groups": [@@ -6089,7 +6089,22 @@"color": "#3f789e","font_size": 24,"flags": {},- "nodes": []+ "nodes": [+ 486,+ 490,+ 502,+ 478,+ 479,+ 516,+ 489,+ 480,+ 592,+ 623,+ 625,+ 487,+ 474,+ 471+ ]},{"id": 26,@@ -6103,7 +6118,18 @@"color": "#3f789e","font_size": 24,"flags": {},- "nodes": []+ "nodes": [+ 584,+ 583,+ 585,+ 590,+ 588,+ 589,+ 586,+ 624,+ 591,+ 587+ ]},{"id": 27,@@ -6117,7 +6143,11 @@"color": "#b58b2a","font_size": 24,"flags": {},- "nodes": []+ "nodes": [+ 511,+ 508,+ 593+ ]},{"id": 28,@@ -6131,7 +6161,16 @@"color": "#3f789e","font_size": 24,"flags": {},- "nodes": []+ "nodes": [+ 472,+ 462,+ 485,+ 501,+ 477,+ 468,+ 515,+ 461+ ]}],"links": [@@ -6647,14 +6686,6 @@"target_slot": 4,"type": "IMAGE"},- {- "id": 1259,- "origin_id": 590,- "origin_slot": 0,- "target_id": 508,- "target_slot": 1,- "type": "IMAGE"- },{"id": 1286,"origin_id": 481,@@ -6830,6 +6861,14 @@"target_id": 590,"target_slot": 0,"type": "IMAGE"+ },+ {+ "id": 1321,+ "origin_id": 587,+ "origin_slot": 0,+ "target_id": 508,+ "target_slot": 1,+ "type": "IMAGE"}],"extra": {@@ -6878,7 +6917,7 @@"label": "model stage 1","pos": [-5717.390884569629,- 3569.011919677603+ 3549.011919677603]},{@@ -6893,7 +6932,7 @@"label": "model stage 2","pos": [-5717.390884569629,- 3649.011919677603+ 3569.011919677603]},{@@ -6906,7 +6945,7 @@"label": "upscale model","pos": [-5717.390884569629,- 3809.011919677603+ 3589.011919677603]},{@@ -6919,7 +6958,7 @@"localized_name": "positive","pos": [-5717.390884569629,- 3669.011919677603+ 3609.011919677603]},{@@ -6932,7 +6971,7 @@"localized_name": "negative","pos": [-5717.390884569629,- 3689.011919677603+ 3629.011919677603]},{@@ -6951,7 +6990,7 @@"label": "VAE","pos": [-5717.390884569629,- 3629.011919677603+ 3649.011919677603]},{@@ -6967,7 +7006,7 @@"label": "audio VAE","pos": [-5717.390884569629,- 3589.011919677603+ 3669.011919677603]},{@@ -6982,7 +7021,7 @@"label": "first frame","pos": [-5717.390884569629,- 3729.011919677603+ 3689.011919677603]},{@@ -6996,7 +7035,7 @@"label": "frame rate","pos": [-5717.390884569629,- 3609.011919677603+ 3709.011919677603]},{@@ -7012,7 +7051,7 @@"shape": 7,"pos": [-5717.390884569629,- 3709.011919677603+ 3729.011919677603]},{@@ -7025,7 +7064,7 @@],"pos": [-5717.390884569629,- 3769.011919677603+ 3749.011919677603]},{@@ -7038,7 +7077,7 @@],"pos": [-5717.390884569629,- 3789.011919677603+ 3769.011919677603]},{@@ -7051,7 +7090,7 @@"localized_name": "image","pos": [-5717.390884569629,- 3549.011919677603+ 3789.011919677603]},{@@ -7064,7 +7103,7 @@"label": "noise seed","pos": [-5717.390884569629,- 3749.011919677603+ 3809.011919677603]},{@@ -8416,7 +8455,7 @@"widgets_values": ["bicubic",1920,- 1920,+ 1088,"center"]},@@ -8937,7 +8976,7 @@"widgets_values": ["bicubic",1920,- 1920,+ 1088,"center"]},@@ -9825,7 +9864,7 @@"version": 1,"state": {"lastGroupId": 19,- "lastNodeId": 234,+ "lastNodeId": 237,"lastLinkId": 375,"lastRerouteId": 0},@@ -10334,15 +10373,15 @@"widgets_values": []},{- "id": 218,- "type": "LTXVGemmaCLIPModelLoader",+ "id": 233,+ "type": "MarkdownNote","pos": [- -4717.118791809181,- 3832.829005690576+ -3923.1618258543112,+ 3835.7948591109102],"size": [- 361.9550439528154,- 106+ 243.8124037464695,+ 146.00584955273098],"flags": {"collapsed": false@@ -10350,59 +10389,148 @@"order": 1,"mode": 0,"inputs": [],+ "outputs": [],+ "title": "RTX 5090",+ "properties": {},+ "widgets_values": [+ "This workflow is structured for optimized GPU and VRAM usage.\n\nModel nodes are ordered intentionally to reduce peak VRAM load.\n\nInput dependencies are used to organize execution order and should not be removed."+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 229,+ "type": "LowVRAMCheckpointLoader",+ "pos": [+ -4713.418170030996,+ 3422.8526786515235+ ],+ "size": [+ 366.1962657709886,+ 98+ ],+ "flags": {},+ "order": 13,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "dependencies",+ "name": "dependencies",+ "shape": 7,+ "type": "*",+ "link": 372+ }+ ],"outputs": [{- "localized_name": "clip",- "name": "clip",+ "localized_name": "MODEL",+ "name": "MODEL",+ "type": "MODEL",+ "links": [+ 367,+ 368+ ]+ },+ {+ "localized_name": "CLIP",+ "name": "CLIP","type": "CLIP",+ "links": null+ },+ {+ "localized_name": "VAE",+ "name": "VAE",+ "type": "VAE","links": [- 334,- 340+ 375]}],"properties": {- "aux_id": "Lightricks/ComfyUI-LTXVideo",- "Node name for S&R": "LTXVGemmaCLIPModelLoader",- "ver": "445e087a43b95b57ef765874b6787446ec72546c"+ "Node name for S&R": "LowVRAMCheckpointLoader"},"widgets_values": [- "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",- "ltx-2-19b-distilled.safetensors",- 1024+ "ltx-2-19b-distilled.safetensors"]},{- "id": 224,- "type": "SaveVideo",+ "id": 230,+ "type": "LowVRAMAudioVAELoader","pos": [- -3451.5346631448497,- 3454.1334693386984+ -4721.577240131778,+ 3994.2077393341306],"size": [- 507.7172093653958,- 399.11336809064983+ 369.648335325472,+ 58],"flags": {},- "order": 12,+ "order": 14,"mode": 0,"inputs": [{- "localized_name": "video",- "name": "video",- "type": "VIDEO",- "link": 364+ "localized_name": "dependencies",+ "name": "dependencies",+ "shape": 7,+ "type": "*",+ "link": 371+ }+ ],+ "outputs": [+ {+ "localized_name": "audio_vae",+ "name": "audio_vae",+ "type": "VAE",+ "links": [+ 369+ ]}],- "outputs": [],"properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1"+ "Node name for S&R": "LowVRAMAudioVAELoader"+ },+ "widgets_values": [+ "ltx-2-19b-distilled.safetensors"+ ]+ },+ {+ "id": 232,+ "type": "LowVRAMLatentUpscaleModelLoader",+ "pos": [+ -4706.116238030607,+ 3717.0363964895646+ ],+ "size": [+ 353.34921875,+ 58+ ],+ "flags": {},+ "order": 15,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "dependencies",+ "name": "dependencies",+ "shape": 7,+ "type": "*",+ "link": 373+ }+ ],+ "outputs": [+ {+ "localized_name": "LATENT_UPSCALE_MODEL",+ "name": "LATENT_UPSCALE_MODEL",+ "type": "LATENT_UPSCALE_MODEL",+ "links": [+ 374+ ]+ }+ ],+ "properties": {+ "Node name for S&R": "LowVRAMLatentUpscaleModelLoader"},"widgets_values": [- "LTX-2/Video",- "auto",- "auto"+ "ltx-2-spatial-upscaler-x2-1.0.safetensors"]},{@@ -10444,131 +10572,82 @@"Node name for S&R": "LoraLoaderModelOnly"},"widgets_values": [- "Internal/ltxv_apps/opensource_release/ic-loras/canny.safetensors",+ "ltx-2-19b-ic-lora-canny-control.safetensors",1]},{- "id": 229,- "type": "LowVRAMCheckpointLoader",+ "id": 224,+ "type": "SaveVideo","pos": [- -4713.418170030996,- 3422.8526786515235+ -3449.9920902353,+ 3465.5558544546634],"size": [- 366.1962657709886,- 98+ 507.7172093653958,+ 399.11336809064983],"flags": {},- "order": 13,+ "order": 12,"mode": 0,"inputs": [{- "localized_name": "dependencies",- "name": "dependencies",- "shape": 7,- "type": "*",- "link": 372- }- ],- "outputs": [- {- "localized_name": "MODEL",- "name": "MODEL",- "type": "MODEL",- "links": [- 367,- 368- ]- },- {- "localized_name": "CLIP",- "name": "CLIP",- "type": "CLIP",- "links": null- },- {- "localized_name": "VAE",- "name": "VAE",- "type": "VAE",- "links": [- 375- ]+ "localized_name": "video",+ "name": "video",+ "type": "VIDEO",+ "link": 364}],+ "outputs": [],"properties": {- "Node name for S&R": "LowVRAMCheckpointLoader"+ "cnr_id": "comfy-core",+ "ver": "0.5.1"},"widgets_values": [- "ltx-av-distilled-from-42500.safetensors"+ "LTX-2/Video",+ "auto",+ "auto"]},{- "id": 230,- "type": "LowVRAMAudioVAELoader",+ "id": 218,+ "type": "LTXVGemmaCLIPModelLoader","pos": [- -4721.577240131778,- 3994.2077393341306+ -4717.118791809181,+ 3832.829005690576],"size": [- 369.648335325472,- 58+ 361.9550439528154,+ 106],- "flags": {},- "order": 14,+ "flags": {+ "collapsed": false+ },+ "order": 2,"mode": 0,- "inputs": [- {- "localized_name": "dependencies",- "name": "dependencies",- "shape": 7,- "type": "*",- "link": 371- }- ],+ "inputs": [],"outputs": [{- "localized_name": "audio_vae",- "name": "audio_vae",- "type": "VAE",+ "localized_name": "clip",+ "name": "clip",+ "type": "CLIP","links": [- 369+ 334,+ 340]}],"properties": {- "Node name for S&R": "LowVRAMAudioVAELoader"+ "aux_id": "Lightricks/ComfyUI-LTXVideo",+ "Node name for S&R": "LTXVGemmaCLIPModelLoader",+ "ver": "445e087a43b95b57ef765874b6787446ec72546c"},"widgets_values": [- "ltx-av-distilled-from-42500.safetensors"+ "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",+ "ltx-2-19b-distilled.safetensors",+ 1024]},- {- "id": 233,- "type": "MarkdownNote",- "pos": [- -3923.1618258543112,- 3835.7948591109102- ],- "size": [- 243.8124037464695,- 146.00584955273098- ],- "flags": {- "collapsed": false- },- "order": 2,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "RTX 5090",- "properties": {},- "widgets_values": [- "This workflow is structured for optimized GPU and VRAM usage.\n\nModel nodes are ordered intentionally to reduce peak VRAM load.\n\nInput dependencies are used to organize execution order and should not be removed."- ],- "color": "#432",- "bgcolor": "#653"- },{"id": 234,"type": "MarkdownNote",@@ -10797,46 +10876,6 @@1,42]- },- {- "id": 232,- "type": "LowVRAMLatentUpscaleModelLoader",- "pos": [- -4706.116238030607,- 3717.0363964895646- ],- "size": [- 353.34921875,- 58- ],- "flags": {},- "order": 15,- "mode": 0,- "inputs": [- {- "localized_name": "dependencies",- "name": "dependencies",- "shape": 7,- "type": "*",- "link": 373- }- ],- "outputs": [- {- "localized_name": "LATENT_UPSCALE_MODEL",- "name": "LATENT_UPSCALE_MODEL",- "type": "LATENT_UPSCALE_MODEL",- "links": [- 374- ]- }- ],- "properties": {- "Node name for S&R": "LowVRAMLatentUpscaleModelLoader"- },- "widgets_values": [- "ltx-2-spatial-upscaler-x2-1.0.safetensors"- ]}],"groups": [@@ -11694,92 +11733,62 @@"Node name for S&R": "PrimitiveStringMultiline"},"widgets_values": [- ""+ "cinematic aerial shot of a city landscape at night with warm lights illuminating the windows of the buildings. there is a visible green aurora borealis in the sky. soft piano melody playing "],"color": "#232","bgcolor": "#353"},{- "id": 232,- "type": "LoraLoaderModelOnly",+ "id": 253,+ "type": "MarkdownNote","pos": [- -4876.456414820086,- 3252.7804226113144+ -4077.1904429734523,+ 3572.8970015988957],"size": [- 366.4906700768861,- 82- ],- "flags": {},- "order": 9,- "mode": 4,- "inputs": [- {- "localized_name": "model",- "name": "model",- "type": "MODEL",- "link": 411- }- ],- "outputs": [- {- "localized_name": "MODEL",- "name": "MODEL",- "type": "MODEL",- "links": [- 380- ]- }+ 243.8124037464695,+ 146.00584955273098],- "title": "IC LoRA - Depth",- "properties": {- "cnr_id": "comfy-core",- "ver": "0.3.75",- "Node name for S&R": "LoraLoaderModelOnly"+ "flags": {+ "collapsed": false},+ "order": 1,+ "mode": 4,+ "inputs": [],+ "outputs": [],+ "title": "RTX 5090",+ "properties": {},"widgets_values": [- "Internal/ltxv_apps/opensource_release/ic-loras/depth.safetensors",- 1- ]+ "This workflow is structured for optimized GPU and VRAM usage.\n\nModel nodes are ordered intentionally to reduce peak VRAM load.\n\nInput dependencies are used to organize execution order and should not be removed."+ ],+ "color": "#432",+ "bgcolor": "#653"},{- "id": 237,- "type": "LTXVGemmaCLIPModelLoader",+ "id": 254,+ "type": "MarkdownNote","pos": [- -4879.374382504993,- 3521.0348105408675+ -5328.875479604414,+ 3439.3993891434043],"size": [- 369.34488792888595,- 106+ 428.34650223258404,+ 159.11619167692334],"flags": {"collapsed": false},- "order": 1,+ "order": 2,"mode": 4,"inputs": [],- "outputs": [- {- "localized_name": "clip",- "name": "clip",- "type": "CLIP",- "links": [- 369,- 375- ]- }- ],- "properties": {- "aux_id": "Lightricks/ComfyUI-LTXVideo",- "Node name for S&R": "LTXVGemmaCLIPModelLoader",- "ver": "445e087a43b95b57ef765874b6787446ec72546c"- },- "widgets_values": [- "gemma-3-12b-it-qat-q4_0-unquantized_readout_proj/model/model.safetensors",- "ltx-2-19b-distilled.safetensors",- 1024- ]+ "outputs": [],+ "title": "IC LoRA",+ "properties": {},+ "widgets_values": [+ "# IC LoRA Training \n\nFor your own IC LoRA - Upload to the \"IC LoRA\" node.\nMake sure to bypass the \"IC LoRA Preprocessing\" in the Samplers subgraph \n\n## Training\nWe have made available a full trainer to help you to train your own LoRA. You can [find it here](https://github.com/Lightricks/LTX-2)."+ ],+ "color": "#432",+ "bgcolor": "#653"},{"id": 250,@@ -11833,22 +11842,22 @@"Node name for S&R": "LowVRAMCheckpointLoader"},"widgets_values": [- "ltx-av-distilled-from-42500.safetensors"+ "ltx-2-19b-distilled.safetensors"]},{- "id": 251,- "type": "LowVRAMLatentUpscaleModelLoader",+ "id": 252,+ "type": "LowVRAMAudioVAELoader","pos": [- -4866.020413516841,- 3409.0859146237253+ -4880.12943853179,+ 3671.9030412482284],"size": [- 353.34921875,+ 369.648335325472,58],"flags": {},- "order": 14,+ "order": 15,"mode": 4,"inputs": [{@@ -11856,117 +11865,147 @@"name": "dependencies","shape": 7,"type": "*",- "link": 417+ "link": 415}],"outputs": [{- "localized_name": "LATENT_UPSCALE_MODEL",- "name": "LATENT_UPSCALE_MODEL",- "type": "LATENT_UPSCALE_MODEL",+ "localized_name": "audio_vae",+ "name": "audio_vae",+ "type": "VAE","links": [- 418+ 414]}],"properties": {- "Node name for S&R": "LowVRAMLatentUpscaleModelLoader"+ "Node name for S&R": "LowVRAMAudioVAELoader"},"widgets_values": [- "ltx2-spatial-upscaler-x2-1.0.safetensors"+ "ltx-2-19b-distilled.safetensors"]},{- "id": 252,- "type": "LowVRAMAudioVAELoader",+ "id": 232,+ "type": "LoraLoaderModelOnly","pos": [- -4880.12943853179,- 3671.9030412482284+ -4876.456414820086,+ 3252.7804226113144],"size": [- 369.648335325472,- 58+ 366.4906700768861,+ 82],"flags": {},- "order": 15,+ "order": 9,"mode": 4,"inputs": [{- "localized_name": "dependencies",- "name": "dependencies",- "shape": 7,- "type": "*",- "link": 415+ "localized_name": "model",+ "name": "model",+ "type": "MODEL",+ "link": 411}],"outputs": [{- "localized_name": "audio_vae",- "name": "audio_vae",- "type": "VAE",+ "localized_name": "MODEL",+ "name": "MODEL",+ "type": "MODEL","links": [- 414+ 380]}],+ "title": "IC LoRA - Depth","properties": {- "Node name for S&R": "LowVRAMAudioVAELoader"+ "cnr_id": "comfy-core",+ "ver": "0.3.75",+ "Node name for S&R": "LoraLoaderModelOnly"},"widgets_values": [- "ltx-av-distilled-from-42500.safetensors"+ "ltx-2-19b-ic-lora-depth-control.safetensors",+ 1]},{- "id": 253,- "type": "MarkdownNote",+ "id": 237,+ "type": "LTXVGemmaCLIPModelLoader","pos": [- -4077.1904429734523,- 3572.8970015988957+ -4879.374382504993,+ 3521.0348105408675],"size": [- 243.8124037464695,- 146.00584955273098+ 369.34488792888595,+ 106],"flags": {"collapsed": false},- "order": 2,+ "order": 3,"mode": 4,"inputs": [],- "outputs": [],- "title": "RTX 5090",- "properties": {},- "widgets_values": [- "This workflow is structured for optimized GPU and VRAM usage.\n\nModel nodes are ordered intentionally to reduce peak VRAM load.\n\nInput dependencies are used to organize execution order and should not be removed."+ "outputs": [+ {+ "localized_name": "clip",+ "name": "clip",+ "type": "CLIP",+ "links": [+ 369,+ 375+ ]+ }],- "color": "#432",- "bgcolor": "#653"+ "properties": {+ "aux_id": "Lightricks/ComfyUI-LTXVideo",+ "Node name for S&R": "LTXVGemmaCLIPModelLoader",+ "ver": "445e087a43b95b57ef765874b6787446ec72546c"+ },+ "widgets_values": [+ "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",+ "ltx-2-19b-distilled.safetensors",+ 1024+ ]},{- "id": 254,- "type": "MarkdownNote",+ "id": 251,+ "type": "LowVRAMLatentUpscaleModelLoader","pos": [- -5328.875479604414,- 3439.3993891434043+ -4866.020413516841,+ 3409.0859146237253],"size": [- 428.34650223258404,- 159.11619167692334+ 353.34921875,+ 58],- "flags": {- "collapsed": false- },- "order": 3,+ "flags": {},+ "order": 14,"mode": 4,- "inputs": [],- "outputs": [],- "title": "IC LoRA",- "properties": {},- "widgets_values": [- "# IC LoRA Training \n\nFor your own IC LoRA - Upload to the \"IC LoRA\" node.\nMake sure to bypass the \"IC LoRA Preprocessing\" in the Samplers subgraph \n\n## Training\nWe have made available a full trainer to help you to train your own LoRA. You can [find it here](https://github.com/Lightricks/LTX-2)."+ "inputs": [+ {+ "localized_name": "dependencies",+ "name": "dependencies",+ "shape": 7,+ "type": "*",+ "link": 417+ }],- "color": "#432",- "bgcolor": "#653"+ "outputs": [+ {+ "localized_name": "LATENT_UPSCALE_MODEL",+ "name": "LATENT_UPSCALE_MODEL",+ "type": "LATENT_UPSCALE_MODEL",+ "links": [+ 418+ ]+ }+ ],+ "properties": {+ "Node name for S&R": "LowVRAMLatentUpscaleModelLoader"+ },+ "widgets_values": [+ "ltx-2-spatial-upscaler-x2-1.0.safetensors"+ ]},{"id": 239,@@ -12164,7 +12203,7 @@"widgets_values": [24,true,- 1920,+ 1088,1920,1,42@@ -12184,7 +12223,13 @@"color": "#3f789e","font_size": 24,"flags": {},- "nodes": []+ "nodes": [+ 250,+ 252,+ 232,+ 237,+ 251+ ]},{"id": 18,@@ -12198,7 +12243,13 @@"color": "#3f789e","font_size": 24,"flags": {},- "nodes": []+ "nodes": [+ 225,+ 228,+ 231,+ 235,+ 229+ ]},{"id": 19,@@ -12212,7 +12263,12 @@"color": "#3f789e","font_size": 24,"flags": {},- "nodes": []+ "nodes": [+ 225,+ 228,+ 231,+ 235+ ]}],"links": [@@ -12697,7 +12753,7 @@"Node name for S&R": "PrimitiveStringMultiline"},"widgets_values": [- ""+ "cinematic aerial shot of a city landscape at night with warm lights illuminating the windows of the buildings. there is a visible green aurora borealis in the sky. soft piano melody playing"],"color": "#232","bgcolor": "#353"@@ -13051,100 +13107,103 @@"widgets_values": []},{- "id": 246,- "type": "LoraLoaderModelOnly",+ "id": 269,+ "type": "MarkdownNote","pos": [- -4703.035740729796,- 6554.255921054208+ -3924.9280052905788,+ 6873.5415123161265],"size": [- 323.90644822095646,- 82- ],- "flags": {},- "order": 7,- "mode": 4,- "inputs": [- {- "localized_name": "model",- "name": "model",- "type": "MODEL",- "link": 450- }- ],- "outputs": [- {- "localized_name": "MODEL",- "name": "MODEL",- "type": "MODEL",- "links": [- 415- ]- }+ 243.8124037464695,+ 146.00584955273098],- "title": "IC LoRA - Pose",- "properties": {- "cnr_id": "comfy-core",- "ver": "0.3.75",- "Node name for S&R": "LoraLoaderModelOnly"+ "flags": {+ "collapsed": false},+ "order": 1,+ "mode": 4,+ "inputs": [],+ "outputs": [],+ "title": "RTX 5090",+ "properties": {},"widgets_values": [- "Internal/ltxv_apps/opensource_release/ic-loras/pose.safetensors",- 1- ]+ "This workflow is structured for optimized GPU and VRAM usage.\n\nModel nodes are ordered intentionally to reduce peak VRAM load.\n\nInput dependencies are used to organize execution order and should not be removed."+ ],+ "color": "#432",+ "bgcolor": "#653"},{- "id": 250,- "type": "LTXVGemmaCLIPModelLoader",+ "id": 270,+ "type": "MarkdownNote","pos": [- -4719.826929856459,- 6811.4889293323395+ -5181.39485402919,+ 6743.973328267672],"size": [- 353.23373465460344,- 106+ 428.34650223258404,+ 159.11619167692334],"flags": {"collapsed": false},- "order": 1,+ "order": 2,"mode": 4,"inputs": [],- "outputs": [+ "outputs": [],+ "title": "IC LoRA",+ "properties": {},+ "widgets_values": [+ "# IC LoRA Training \n\nFor your own IC LoRA - Upload to the \"IC LoRA\" node.\nMake sure to bypass the \"IC LoRA Preprocessing\" in the Samplers subgraph \n\n## Training\nWe have made available a full trainer to help you to train your own LoRA. You can [find it here](https://github.com/Lightricks/LTX-2)."+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 256,+ "type": "SaveVideo",+ "pos": [+ -3445.418506295727,+ 6503.453622594923+ ],+ "size": [+ 403.7172093653958,+ 501.7172093653958+ ],+ "flags": {},+ "order": 12,+ "mode": 4,+ "inputs": [{- "localized_name": "clip",- "name": "clip",- "type": "CLIP",- "links": [- 404,- 410- ]+ "localized_name": "video",+ "name": "video",+ "type": "VIDEO",+ "link": 434}],+ "outputs": [],"properties": {- "aux_id": "Lightricks/ComfyUI-LTXVideo",- "Node name for S&R": "LTXVGemmaCLIPModelLoader",- "ver": "445e087a43b95b57ef765874b6787446ec72546c"+ "cnr_id": "comfy-core",+ "ver": "0.5.1"},"widgets_values": [- "gemma-3-12b-it-qat-q4_0-unquantized_readout_proj/model/model.safetensors",- "ltx-2-19b-distilled.safetensors",- 1024+ "LTX-2/Video",+ "auto",+ "auto"]},{- "id": 268,- "type": "LowVRAMAudioVAELoader",+ "id": 266,+ "type": "LowVRAMCheckpointLoader","pos": [- -4734.310465787393,- 6969.913236857175+ -4722.276071061947,+ 6410.410744459424],"size": [- 369.648335325472,- 58+ 366.1962657709886,+ 98],"flags": {},- "order": 16,+ "order": 14,"mode": 4,"inputs": [{@@ -13152,39 +13211,54 @@"name": "dependencies","shape": 7,"type": "*",- "link": 456+ "link": 455}],"outputs": [{- "localized_name": "audio_vae",- "name": "audio_vae",+ "localized_name": "MODEL",+ "name": "MODEL",+ "type": "MODEL",+ "links": [+ 450,+ 451+ ]+ },+ {+ "localized_name": "CLIP",+ "name": "CLIP",+ "type": "CLIP",+ "links": null+ },+ {+ "localized_name": "VAE",+ "name": "VAE","type": "VAE","links": [- 457+ 452]}],"properties": {- "Node name for S&R": "LowVRAMAudioVAELoader"+ "Node name for S&R": "LowVRAMCheckpointLoader"},"widgets_values": [- "ltx-av-distilled-from-42500.safetensors"+ "ltx-2-19b-distilled.safetensors"]},{- "id": 267,- "type": "LowVRAMLatentUpscaleModelLoader",+ "id": 268,+ "type": "LowVRAMAudioVAELoader","pos": [- -4719.478697480771,- 6694.642921567023+ -4734.310465787393,+ 6969.913236857175],"size": [- 353.34921875,+ 369.648335325472,58],"flags": {},- "order": 15,+ "order": 16,"mode": 4,"inputs": [{@@ -13192,47 +13266,46 @@"name": "dependencies","shape": 7,"type": "*",- "link": 454+ "link": 456}],"outputs": [{- "localized_name": "LATENT_UPSCALE_MODEL",- "name": "LATENT_UPSCALE_MODEL",- "type": "LATENT_UPSCALE_MODEL",+ "localized_name": "audio_vae",+ "name": "audio_vae",+ "type": "VAE","links": [- 453+ 457]}],"properties": {- "Node name for S&R": "LowVRAMLatentUpscaleModelLoader"+ "Node name for S&R": "LowVRAMAudioVAELoader"},"widgets_values": [- "ltx2-spatial-upscaler-x2-1.0.safetensors"+ "ltx-2-19b-distilled.safetensors"]},{- "id": 266,- "type": "LowVRAMCheckpointLoader",+ "id": 246,+ "type": "LoraLoaderModelOnly","pos": [- -4722.276071061947,- 6410.410744459424+ -4715.515138064328,+ 6555.232987817329],"size": [- 366.1962657709886,- 98+ 346.1144241569232,+ 82],"flags": {},- "order": 14,+ "order": 7,"mode": 4,"inputs": [{- "localized_name": "dependencies",- "name": "dependencies",- "shape": 7,- "type": "*",- "link": 455+ "localized_name": "model",+ "name": "model",+ "type": "MODEL",+ "link": 450}],"outputs": [@@ -13241,68 +13314,31 @@"name": "MODEL","type": "MODEL","links": [- 450,- 451- ]- },- {- "localized_name": "CLIP",- "name": "CLIP",- "type": "CLIP",- "links": null- },- {- "localized_name": "VAE",- "name": "VAE",- "type": "VAE",- "links": [- 452+ 415]}],+ "title": "IC LoRA - Pose","properties": {- "Node name for S&R": "LowVRAMCheckpointLoader"+ "cnr_id": "comfy-core",+ "ver": "0.3.75",+ "Node name for S&R": "LoraLoaderModelOnly"},"widgets_values": [- "ltx-av-distilled-from-42500.safetensors"+ "ltx-2-19b-ic-lora-pose-control.safetensors",+ 1]},{- "id": 269,- "type": "MarkdownNote",- "pos": [- -3924.9280052905788,- 6873.5415123161265- ],- "size": [- 243.8124037464695,- 146.00584955273098- ],- "flags": {- "collapsed": false- },- "order": 2,- "mode": 4,- "inputs": [],- "outputs": [],- "title": "RTX 5090",- "properties": {},- "widgets_values": [- "This workflow is structured for optimized GPU and VRAM usage.\n\nModel nodes are ordered intentionally to reduce peak VRAM load.\n\nInput dependencies are used to organize execution order and should not be removed."- ],- "color": "#432",- "bgcolor": "#653"- },- {- "id": 270,- "type": "MarkdownNote",+ "id": 250,+ "type": "LTXVGemmaCLIPModelLoader","pos": [- -5181.39485402919,- 6743.973328267672+ -4719.826929856459,+ 6811.4889293323395],"size": [- 428.34650223258404,- 159.11619167692334+ 353.23373465460344,+ 106],"flags": {"collapsed": false@@ -13310,46 +13346,26 @@"order": 3,"mode": 4,"inputs": [],- "outputs": [],- "title": "IC LoRA",- "properties": {},- "widgets_values": [- "# IC LoRA Training \n\nFor your own IC LoRA - Upload to the \"IC LoRA\" node.\nMake sure to bypass the \"IC LoRA Preprocessing\" in the Samplers subgraph \n\n## Training\nWe have made available a full trainer to help you to train your own LoRA. You can [find it here](https://github.com/Lightricks/LTX-2)."- ],- "color": "#432",- "bgcolor": "#653"- },- {- "id": 256,- "type": "SaveVideo",- "pos": [- -3445.418506295727,- 6503.453622594923- ],- "size": [- 403.7172093653958,- 501.7172093653958- ],- "flags": {},- "order": 12,- "mode": 4,- "inputs": [+ "outputs": [{- "localized_name": "video",- "name": "video",- "type": "VIDEO",- "link": 434+ "localized_name": "clip",+ "name": "clip",+ "type": "CLIP",+ "links": [+ 404,+ 410+ ]}],- "outputs": [],"properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1"+ "aux_id": "Lightricks/ComfyUI-LTXVideo",+ "Node name for S&R": "LTXVGemmaCLIPModelLoader",+ "ver": "445e087a43b95b57ef765874b6787446ec72546c"},"widgets_values": [- "LTX-2/Video",- "auto",- "auto"+ "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",+ "ltx-2-19b-distilled.safetensors",+ 1024]},{@@ -13549,10 +13565,50 @@24,true,1920,- 1920,+ 1088,1,42]+ },+ {+ "id": 267,+ "type": "LowVRAMLatentUpscaleModelLoader",+ "pos": [+ -4719.478697480771,+ 6694.642921567023+ ],+ "size": [+ 353.34921875,+ 58+ ],+ "flags": {},+ "order": 15,+ "mode": 4,+ "inputs": [+ {+ "localized_name": "dependencies",+ "name": "dependencies",+ "shape": 7,+ "type": "*",+ "link": 454+ }+ ],+ "outputs": [+ {+ "localized_name": "LATENT_UPSCALE_MODEL",+ "name": "LATENT_UPSCALE_MODEL",+ "type": "LATENT_UPSCALE_MODEL",+ "links": [+ 453+ ]+ }+ ],+ "properties": {+ "Node name for S&R": "LowVRAMLatentUpscaleModelLoader"+ },+ "widgets_values": [+ "ltx-2-spatial-upscaler-x2-1.0.safetensors"+ ]}],"groups": [diff --git a/example_workflows/LTX-2_T2V_Distilled_wLora.json b/example_workflows/LTX-2_T2V_Distilled_wLora.jsonindex 736f508..d0a1f00 100644--- a/example_workflows/LTX-2_T2V_Distilled_wLora.json+++ b/example_workflows/LTX-2_T2V_Distilled_wLora.json@@ -251,44 +251,6 @@"ltx-2-19b-distilled.safetensors"]},- {- "id": 5227,- "type": "LTXVGemmaCLIPModelLoader",- "pos": [- -3298.5249619455894,- 7907.801436963024- ],- "size": [- 421.93656760943577,- 106- ],- "flags": {},- "order": 4,- "mode": 0,- "inputs": [],- "outputs": [- {- "name": "clip",- "type": "CLIP",- "links": [- 13961,- 13962- ]- }- ],- "properties": {- "Node name for S&R": "LTXVGemmaCLIPModelLoader",- "widget_ue_connectable": {- "model_path": true,- "max_length": true- }- },- "widgets_values": [- "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",- "ltx-2-19b-distilled.safetensors",- 1024- ]- },{"id": 5219,"type": "LTXVAudioVAELoader",@@ -301,7 +263,7 @@58],"flags": {},- "order": 5,+ "order": 4,"mode": 0,"inputs": [],"outputs": [@@ -551,42 +513,6 @@"auto"]},- {- "id": 5222,- "type": "PrimitiveStringMultiline",- "pos": [- -2567.508915639494,- 7588.770792256889- ],- "size": [- 337.7200214704494,- 515.3418506718763- ],- "flags": {},- "order": 6,- "mode": 0,- "inputs": [],- "outputs": [- {- "name": "STRING",- "type": "STRING",- "links": [- 13980- ]- }- ],- "title": "Positive Prompt",- "properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "PrimitiveStringMultiline"- },- "widgets_values": [- "A medium shot captures a doctor, clad in a white lab coat over a blue shirt, with a stethoscope draped around his neck, as he gently palpates the right knee of a patient. The patient, wearing a dark blue garment, sits on a light blue examination table, her left hand resting on her left thigh, and her right hand resting on her right thigh, just above the knee. A subtle red inflamed area is visible on the patient's right knee. The background is softly blurred, showing medical supplies on a counter. The camera slowly tilts up, revealing the doctor's face as he carefully flexes the patient's knee, testing its range of movement. The patient's expression shifts, her brow furrowing slightly, and she winces in discomfort. As the doctor continues to assess the knee, a nurse, dressed in scrubs and holding a notepad, enters the frame from the left, walking past the doctor and patient. She briefly pauses, extending the notepad towards the doctor, who glances at the notes and gives a subtle nod of acknowledgment before returning his attention to the patient's knee. The nurse continues walking out of frame to the right, and the doctor resumes his examination, his hands continuing to gently manipulate the patient's knee, who continues to wince.\n"- ],- "color": "#232",- "bgcolor": "#353"- },{"id": 5244,"type": "LatentUpscaleModelLoader",@@ -599,7 +525,7 @@100.68012732230727],"flags": {},- "order": 7,+ "order": 5,"mode": 0,"inputs": [],"outputs": [@@ -620,58 +546,6 @@"ltx-2-spatial-upscaler-x2-1.0.safetensors"]},- {- "id": 5246,- "type": "MarkdownNote",- "pos": [- -3759.587881115107,- 7906.926955158114- ],- "size": [- 418.0950915480007,- 208.54998853542747- ],- "flags": {- "collapsed": false- },- "order": 8,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Prompting LTX-2",- "properties": {},- "widgets_values": [- "## LTX-2 Prompting Tips\n1. **Core Actions**: Describe events and actions as they occur over time \n2. **Audio**: Describe sounds and dialogue needed for the scene \n3. **Consistency**: Avoid instructions that do not match the reference image, as this will degrade results\n"- ],- "color": "#432",- "bgcolor": "#653"- },- {- "id": 5245,- "type": "MarkdownNote",- "pos": [- -3759.592503870824,- 7426.935420507221- ],- "size": [- 421.1303542521987,- 436.3332627074051- ],- "flags": {- "collapsed": false- },- "order": 9,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Model Links",- "properties": {},- "widgets_values": [- "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b-distilled.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled.safetensors)\n- [ ltx-2-spatial-upscaler-x2-1.0.safetensors ](https://huggingface.co/Lightricks/LTX-2/tree/main/ltx-2-spatial-upscaler-x2-1.0.safetensors)\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-pt)\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ comfy_gemma_3_12B_it.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b-distilled.safetensors\nβ βββ π latent_upscale_models/ \n βββ ltx-2-spatial-upscaler-x2-1.0.safetensors\n```\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"- ],- "color": "#432",- "bgcolor": "#653"- },{"id": 5247,"type": "MarkdownNote",@@ -686,7 +560,7 @@"flags": {"collapsed": false},- "order": 10,+ "order": 6,"mode": 0,"inputs": [],"outputs": [],@@ -698,32 +572,6 @@"color": "#432","bgcolor": "#653"},- {- "id": 5248,- "type": "MarkdownNote",- "pos": [- -2581.888874206601,- 7104.237854538457- ],- "size": [- 469.5872194653941,- 209.10385276580928- ],- "flags": {- "collapsed": false- },- "order": 11,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "LoRA",- "properties": {},- "widgets_values": [- "# Using LoRAs\n**Ctrl + B to enable**\n\nFor the camera LoRA we recommend setting strength = 1\n\nYou can use LTX [Ready to use camera LoRAs](https://huggingface.co/collections/Lightricks/ltx-2)\n\n\n\n\nUse a second LoRa only when the details are important in the LoRa. \n\n## Training\nWe have made available a full trainer to help you to train your own LoRA. You can [find it here](https://github.com/Lightricks/LTX-2)."- ],- "color": "#432",- "bgcolor": "#653"- },{"id": 5225,"type": "LTXVGemmaEnhancePrompt",@@ -778,9 +626,111 @@"","You are a Creative Assistant. Given a user's raw input prompt describing a scene or concept, expand it into a detailed video generation prompt with specific visuals and integrated audio to guide a text-to-video model.\n\n#### Guidelines\n- Strictly follow all aspects of the user's raw input: include every element requested (style, visuals, motions, actions, camera movement, audio).\n - If the input is vague, invent concrete details: lighting, textures, materials, scene settings, etc.\n - For characters: describe gender, clothing, hair, expressions. DO NOT invent unrequested characters.\n- Use active language: present-progressive verbs (\"is walking,\" \"speaking\"). If no action specified, describe natural movements.\n- Maintain chronological flow: use temporal connectors (\"as,\" \"then,\" \"while\").\n- Audio layer: Describe complete soundscape (background audio, ambient sounds, SFX, speech/music when requested). Integrate sounds chronologically alongside actions. Be specific (e.g., \"soft footsteps on tile\"), not vague (e.g., \"ambient sound is present\").\n- Speech (only when requested): \n - For ANY speech-related input (talking, conversation, singing, etc.), ALWAYS include exact words in quotes with voice characteristics (e.g., \"The man says in an excited voice: 'You won't believe what I just saw!'\").\n - Specify language if not English and accent if relevant.\n- Style: Include visual style at the beginning: \"Style: <style>, <rest of prompt>.\" Default to cinematic-realistic if unspecified. Omit if unclear.\n- Visual and audio only: NO non-visual/auditory senses (smell, taste, touch).\n- Restrained language: Avoid dramatic/exaggerated terms. Use mild, natural phrasing.\n - Colors: Use plain terms (\"red dress\"), not intensified (\"vibrant blue,\" \"bright red\").\n - Lighting: Use neutral descriptions (\"soft overhead light\"), not harsh (\"blinding light\").\n - Facial features: Use delicate modifiers for subtle features (i.e., \"subtle freckles\").\n\n#### Important notes: \n- Analyze the user's raw input carefully. In cases of FPV or POV, exclude the description of the subject whose POV is requested.\n- Camera motion: DO NOT invent camera motion unless requested by the user.\n- Speech: DO NOT modify user-provided character dialogue unless it's a typo.\n- No timestamps or cuts: DO NOT use timestamps or describe scene cuts unless explicitly requested.\n- Format: DO NOT use phrases like \"The scene opens with...\". Start directly with Style (optional) and chronological scene description.\n- Format: DO NOT start your response with special characters.\n- DO NOT invent dialogue unless the user mentions speech/talking/singing/conversation.\n- If the user's raw input prompt is highly detailed, chronological and in the requested format: DO NOT make major edits or introduce new elements. Add/enhance audio descriptions if missing.\n\n#### Output Format (Strict):\n- Single continuous paragraph in natural language (English).\n- NO titles, headings, prefaces, code fences, or Markdown.\n- If unsafe/invalid, return original user prompt. Never ask questions or clarifications.\n\nYour output quality is CRITICAL. Generate visually rich, dynamic prompts with integrated audio for high-quality video generation.\n\n#### Example\nInput: \"A woman at a coffee shop talking on the phone\"\nOutput:\nStyle: realistic with cinematic lighting. In a medium close-up, a woman in her early 30s with shoulder-length brown hair sits at a small wooden table by the window. She wears a cream-colored turtleneck sweater, holding a white ceramic coffee cup in one hand and a smartphone to her ear with the other. Ambient cafe sounds fill the spaceβespresso machine hiss, quiet conversations, gentle clinking of cups. The woman listens intently, nodding slightly, then takes a sip of her coffee and sets it down with a soft clink. Her face brightens into a warm smile as she speaks in a clear, friendly voice, 'That sounds perfect! I'd love to meet up this weekend. How about Saturday afternoon?' She laughs softlyβa genuine chuckleβand shifts in her chair. Behind her, other patrons move subtly in and out of focus. 'Great, I'll see you then,' she concludes cheerfully, lowering the phone.",512,- true+ true,+ 42,+ "randomize"+ ]+ },+ {+ "id": 5222,+ "type": "PrimitiveStringMultiline",+ "pos": [+ -2567.508915639494,+ 7588.770792256889+ ],+ "size": [+ 337.7200214704494,+ 515.3418506718763+ ],+ "flags": {},+ "order": 7,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "name": "STRING",+ "type": "STRING",+ "links": [+ 13980+ ]+ }+ ],+ "title": "Positive Prompt",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "PrimitiveStringMultiline"+ },+ "widgets_values": [+ "cinematic epic war movie scene shows a medium closeup shot of a fierce muscular Viking warrior standing in place, clad in weathered leather armor and gripping a battle-worn axe, his long, tangled hair billowing against the stormy sky. The scene is set under a foreboding, cloud-heavy sky, casting an eerie, dim light that reflects off his glinting axe. we hear him roar: \"prepare for battle, and eternal glory!\". the camera slowly zooms in on his determined face"+ ],+ "color": "#232",+ "bgcolor": "#353"+ },+ {+ "id": 5227,+ "type": "LTXVGemmaCLIPModelLoader",+ "pos": [+ -3298.5249619455894,+ 7907.801436963024+ ],+ "size": [+ 421.93656760943577,+ 106+ ],+ "flags": {},+ "order": 8,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "name": "clip",+ "type": "CLIP",+ "links": [+ 13961,+ 13962+ ]+ }+ ],+ "properties": {+ "Node name for S&R": "LTXVGemmaCLIPModelLoader",+ "widget_ue_connectable": {+ "model_path": true,+ "max_length": true+ }+ },+ "widgets_values": [+ "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",+ "ltx-2-19b-distilled.safetensors",+ 1024]},+ {+ "id": 5248,+ "type": "MarkdownNote",+ "pos": [+ -2581.888874206601,+ 7104.237854538457+ ],+ "size": [+ 469.5872194653941,+ 209.10385276580928+ ],+ "flags": {+ "collapsed": false+ },+ "order": 9,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "LoRA",+ "properties": {},+ "widgets_values": [+ "# Using LoRAs\n**Ctrl + B to enable**\n\nFor the camera LoRA we recommend setting strength = 1\n\nYou can use LTX [Ready to use camera LoRAs](https://huggingface.co/collections/Lightricks/ltx-2)\n\n\n\n\nUse a second LoRa only when the details are important in the LoRa. \n\n## Training\nWe have made available a full trainer to help you to train your own LoRA. You can [find it here](https://github.com/Lightricks/LTX-2)"+ ],+ "color": "#432",+ "bgcolor": "#653"+ },{"id": 5232,"type": "61915fab-cab7-41be-9727-d69a7e41f24a",@@ -912,8 +862,60 @@"widgets_values": [121,25,- 42+ 45]+ },+ {+ "id": 5246,+ "type": "MarkdownNote",+ "pos": [+ -3759.009376983867,+ 7951.430451540103+ ],+ "size": [+ 418.0950915480007,+ 208.54998853542747+ ],+ "flags": {+ "collapsed": false+ },+ "order": 10,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Prompting LTX-2",+ "properties": {},+ "widgets_values": [+ "## LTX-2 Prompting Tips\n1. **Core Actions**: Describe events and actions as they occur over time \n2. **Audio**: Describe sounds and dialogue needed for the scene \n3. **Consistency**: Avoid instructions that do not match the reference image, as this will degrade results\n"+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 5245,+ "type": "MarkdownNote",+ "pos": [+ -3759.592503870824,+ 7426.935420507221+ ],+ "size": [+ 419.9816103344465,+ 480.7830408486252+ ],+ "flags": {+ "collapsed": false+ },+ "order": 11,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Model Links",+ "properties": {},+ "widgets_values": [+ "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b-distilled.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled.safetensors)\n- [ ltx-2-spatial-upscaler-x2-1.0.safetensors ](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-spatial-upscaler-x2-1.0.safetensors)\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized)\n\nPlease download the entire folder - \n\n- Run: \n 1. cd models/text_encoders\n 2. git clone https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized\n\n*Full documentation can be found [here](https://docs.ltx.video/open-source-model/integration-tools/comfy-ui#text-encoder)\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b-distilled.safetensors\nβ βββ π latent_upscale_models/ \n βββ ltx-2-spatial-upscaler-x2-1.0.safetensors\n```\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"+ ],+ "color": "#432",+ "bgcolor": "#653"}],"links": [@@ -1126,8 +1128,8 @@"nodes": [5224,5223,- 5222,- 5225+ 5225,+ 5222]},{@@ -1163,9 +1165,9 @@"flags": {},"nodes": [5228,- 5227,5219,- 5244+ 5244,+ 5227]},{@@ -2021,7 +2023,7 @@"Node name for S&R": "RandomNoise"},"widgets_values": [- 42,+ 45,"fixed"]},diff --git a/example_workflows/LTX-2_T2V_Full_wLora.json b/example_workflows/LTX-2_T2V_Full_wLora.jsonindex 087da02..5a7f6a6 100644--- a/example_workflows/LTX-2_T2V_Full_wLora.json+++ b/example_workflows/LTX-2_T2V_Full_wLora.json@@ -1,62 +1,9 @@{"id": "2d995555-9a88-4480-bc48-960928d44208","revision": 0,- "last_node_id": 5274,+ "last_node_id": 5275,"last_link_id": 14038,"nodes": [- {- "id": 5223,- "type": "CreateVideo",- "pos": [- -1805.9191518229377,- 8313.410516500595- ],- "size": [- 210,- 78- ],- "flags": {},- "order": 21,- "mode": 0,- "inputs": [- {- "name": "images",- "type": "IMAGE",- "link": 14036- },- {- "name": "audio",- "shape": 7,- "type": "AUDIO",- "link": 14037- },- {- "name": "fps",- "type": "FLOAT",- "widget": {- "name": "fps"- },- "link": 13982- }- ],- "outputs": [- {- "name": "VIDEO",- "type": "VIDEO",- "links": [- 13979- ]- }- ],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "CreateVideo"- },- "widgets_values": [- 30- ]- },{"id": 5232,"type": "EmptyImage",@@ -82,9 +29,9 @@}],"properties": {+ "Node name for S&R": "EmptyImage","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "EmptyImage"+ "ver": "0.5.1"},"widgets_values": [1920,@@ -162,9 +109,9 @@],"title": "Frame Rate","properties": {+ "Node name for S&R": "PrimitiveFloat","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "PrimitiveFloat"+ "ver": "0.5.1"},"widgets_values": [24@@ -208,9 +155,9 @@}],"properties": {+ "Node name for S&R": "CheckpointLoaderSimple","cnr_id": "comfy-core",- "ver": "0.3.56",- "Node name for S&R": "CheckpointLoaderSimple"+ "ver": "0.3.56"},"widgets_values": ["ltx-2-19b-dev.safetensors"@@ -241,54 +188,14 @@}],"properties": {+ "Node name for S&R": "LTXVAudioVAELoader","cnr_id": "comfy-core",- "ver": "0.3.64",- "Node name for S&R": "LTXVAudioVAELoader"+ "ver": "0.3.64"},"widgets_values": ["ltx-2-19b-dev.safetensors"]},- {- "id": 5216,- "type": "LoraLoaderModelOnly",- "pos": [- -3197.2762910684833,- 8383.672331407945- ],- "size": [- 210,- 82- ],- "flags": {},- "order": 13,- "mode": 0,- "inputs": [- {- "name": "model",- "type": "MODEL",- "link": 13957- }- ],- "outputs": [- {- "name": "MODEL",- "type": "MODEL",- "links": [- 13958- ]- }- ],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.3.68",- "Node name for S&R": "LoraLoaderModelOnly"- },- "widgets_values": [- "ltxv/ltx2/ltx-2-19b-distilled-lora-384.safetensors",- 0.6- ]- },{"id": 5075,"type": "SaveVideo",@@ -321,45 +228,6 @@"auto"]},- {- "id": 5218,- "type": "LTXVGemmaCLIPModelLoader",- "pos": [- -3636.3289573223046,- 8653.036862529052- ],- "size": [- 421.93656760943577,- 106- ],- "flags": {},- "order": 4,- "mode": 0,- "inputs": [],- "outputs": [- {- "name": "clip",- "type": "CLIP",- "links": [- 13963,- 13964,- 13965- ]- }- ],- "properties": {- "Node name for S&R": "LTXVGemmaCLIPModelLoader",- "widget_ue_connectable": {- "model_path": true,- "max_length": true- }- },- "widgets_values": [- "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",- "ltx-2-19b-dev.safetensors",- 1024- ]- },{"id": 5229,"type": "LTXVConditioning",@@ -413,9 +281,9 @@}],"properties": {+ "Node name for S&R": "LTXVConditioning","cnr_id": "comfy-core",- "ver": "0.3.28",- "Node name for S&R": "LTXVConditioning"+ "ver": "0.3.28"},"widgets_values": [25@@ -464,9 +332,9 @@],"title": "Enhanced Prompt (Positive)","properties": {+ "Node name for S&R": "CLIPTextEncode","cnr_id": "comfy-core",- "ver": "0.3.28",- "Node name for S&R": "CLIPTextEncode"+ "ver": "0.3.28"},"widgets_values": [""@@ -505,9 +373,9 @@}],"properties": {+ "Node name for S&R": "LoraLoaderModelOnly","cnr_id": "comfy-core",- "ver": "0.3.68",- "Node name for S&R": "LoraLoaderModelOnly"+ "ver": "0.3.68"},"widgets_values": ["your_camera_lora.safetensors",@@ -545,9 +413,9 @@}],"properties": {+ "Node name for S&R": "LoraLoaderModelOnly","cnr_id": "comfy-core",- "ver": "0.3.68",- "Node name for S&R": "LoraLoaderModelOnly"+ "ver": "0.3.68"},"widgets_values": ["your_camera_lora.safetensors",@@ -588,9 +456,9 @@}],"properties": {+ "Node name for S&R": "CLIPTextEncode","cnr_id": "comfy-core",- "ver": "0.3.28",- "Node name for S&R": "CLIPTextEncode"+ "ver": "0.3.28"},"widgets_values": ["blurry, low quality, still frame, frames, watermark, overlay, titles, has blurbox, has subtitles"@@ -610,7 +478,7 @@90.46574270449128],"flags": {},- "order": 5,+ "order": 4,"mode": 0,"inputs": [],"outputs": [@@ -623,66 +491,14 @@}],"properties": {+ "Node name for S&R": "LatentUpscaleModelLoader","cnr_id": "comfy-core",- "ver": "0.7.0",- "Node name for S&R": "LatentUpscaleModelLoader"+ "ver": "0.7.0"},"widgets_values": ["ltx-2-spatial-upscaler-x2-1.0.safetensors"]},- {- "id": 5272,- "type": "MarkdownNote",- "pos": [- -4098.12527845955,- 8674.002846129224- ],- "size": [- 423.87576766895836,- 201.4320443144279- ],- "flags": {- "collapsed": false- },- "order": 6,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Prompting LTX-2",- "properties": {},- "widgets_values": [- "## LTX-2 Prompting Tips\n1. **Core Actions**: Describe events and actions as they occur over time \n2. **Audio**: Describe sounds and dialogue needed for the scene \n3. **Consistency**: Avoid instructions that do not match the reference image, as this will degrade results\n"- ],- "color": "#432",- "bgcolor": "#653"- },- {- "id": 5271,- "type": "MarkdownNote",- "pos": [- -4097.264766588089,- 8196.114629590485- ],- "size": [- 421.1303542521987,- 436.3332627074051- ],- "flags": {- "collapsed": false- },- "order": 7,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Model Links",- "properties": {},- "widgets_values": [- "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b.safetensors)\n- [ ltx-2-spatial-upscaler-x2-1.0.safetensors ](https://huggingface.co/Lightricks/LTX-2/tree/main/ltx-2-spatial-upscaler-x2-1.0.safetensors)\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-pt)\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ comfy_gemma_3_12B_it.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b.safetensors\nβ βββ π latent_upscale_models/ \n βββ ltx-2-spatial-upscaler-x2-1.0.safetensors\n```\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"- ],- "color": "#432",- "bgcolor": "#653"- },{"id": 5273,"type": "MarkdownNote",@@ -697,7 +513,7 @@"flags": {"collapsed": false},- "order": 8,+ "order": 5,"mode": 0,"inputs": [],"outputs": [],@@ -723,7 +539,7 @@"flags": {"collapsed": false},- "order": 9,+ "order": 6,"mode": 0,"inputs": [],"outputs": [],@@ -790,7 +606,7 @@"You are a Creative Assistant. Given a user's raw input prompt describing a scene or concept, expand it into a detailed video generation prompt with specific visuals and integrated audio to guide a text-to-video model.\n\n#### Guidelines\n- Strictly follow all aspects of the user's raw input: include every element requested (style, visuals, motions, actions, camera movement, audio).\n - If the input is vague, invent concrete details: lighting, textures, materials, scene settings, etc.\n - For characters: describe gender, clothing, hair, expressions. DO NOT invent unrequested characters.\n- Use active language: present-progressive verbs (\"is walking,\" \"speaking\"). If no action specified, describe natural movements.\n- Maintain chronological flow: use temporal connectors (\"as,\" \"then,\" \"while\").\n- Audio layer: Describe complete soundscape (background audio, ambient sounds, SFX, speech/music when requested). Integrate sounds chronologically alongside actions. Be specific (e.g., \"soft footsteps on tile\"), not vague (e.g., \"ambient sound is present\").\n- Speech (only when requested): \n - For ANY speech-related input (talking, conversation, singing, etc.), ALWAYS include exact words in quotes with voice characteristics (e.g., \"The man says in an excited voice: 'You won't believe what I just saw!'\").\n - Specify language if not English and accent if relevant.\n- Style: Include visual style at the beginning: \"Style: <style>, <rest of prompt>.\" Default to cinematic-realistic if unspecified. Omit if unclear.\n- Visual and audio only: NO non-visual/auditory senses (smell, taste, touch).\n- Restrained language: Avoid dramatic/exaggerated terms. Use mild, natural phrasing.\n - Colors: Use plain terms (\"red dress\"), not intensified (\"vibrant blue,\" \"bright red\").\n - Lighting: Use neutral descriptions (\"soft overhead light\"), not harsh (\"blinding light\").\n - Facial features: Use delicate modifiers for subtle features (i.e., \"subtle freckles\").\n\n#### Important notes: \n- Analyze the user's raw input carefully. In cases of FPV or POV, exclude the description of the subject whose POV is requested.\n- Camera motion: DO NOT invent camera motion unless requested by the user.\n- Speech: DO NOT modify user-provided character dialogue unless it's a typo.\n- No timestamps or cuts: DO NOT use timestamps or describe scene cuts unless explicitly requested.\n- Format: DO NOT use phrases like \"The scene opens with...\". Start directly with Style (optional) and chronological scene description.\n- Format: DO NOT start your response with special characters.\n- DO NOT invent dialogue unless the user mentions speech/talking/singing/conversation.\n- If the user's raw input prompt is highly detailed, chronological and in the requested format: DO NOT make major edits or introduce new elements. Add/enhance audio descriptions if missing.\n\n#### Output Format (Strict):\n- Single continuous paragraph in natural language (English).\n- NO titles, headings, prefaces, code fences, or Markdown.\n- If unsafe/invalid, return original user prompt. Never ask questions or clarifications.\n\nYour output quality is CRITICAL. Generate visually rich, dynamic prompts with integrated audio for high-quality video generation.\n\n#### Example\nInput: \"A woman at a coffee shop talking on the phone\"\nOutput:\nStyle: realistic with cinematic lighting. In a medium close-up, a woman in her early 30s with shoulder-length brown hair sits at a small wooden table by the window. She wears a cream-colored turtleneck sweater, holding a white ceramic coffee cup in one hand and a smartphone to her ear with the other. Ambient cafe sounds fill the spaceβespresso machine hiss, quiet conversations, gentle clinking of cups. The woman listens intently, nodding slightly, then takes a sip of her coffee and sets it down with a soft clink. Her face brightens into a warm smile as she speaks in a clear, friendly voice, 'That sounds perfect! I'd love to meet up this weekend. How about Saturday afternoon?' She laughs softlyβa genuine chuckleβand shifts in her chair. Behind her, other patrons move subtly in and out of focus. 'Great, I'll see you then,' she concludes cheerfully, lowering the phone.",512,true,- 2603156730,+ 2793143611,"randomize"]},@@ -806,7 +622,7 @@314.2382942594604],"flags": {},- "order": 10,+ "order": 7,"mode": 0,"inputs": [],"outputs": [@@ -820,9 +636,9 @@],"title": "Positive Prompt","properties": {+ "Node name for S&R": "PrimitiveStringMultiline","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "PrimitiveStringMultiline"+ "ver": "0.5.1"},"widgets_values": ["cinematic drama movie scene shows a closeup of a blonde woman wearing a red sweater hanging out of the open door of a moving train, looking outside and smiling. the camera is fixed to the train's side as the train moves forward on the track. the woman seems excited and says: \" I think we're almost there!\". we hear the train's engine in the background. then, a little boy with brown hair pops his head out of the train along with the woman, looking at her in excitement. he then asks her: \"This is Nana's old village, isn't it?\". she nodes and embraces him joyfully."@@ -830,6 +646,134 @@"color": "#232","bgcolor": "#353"},+ {+ "id": 5233,+ "type": "PrimitiveInt",+ "pos": [+ -2930.33867108064,+ 8527.25744685942+ ],+ "size": [+ 210,+ 82+ ],+ "flags": {},+ "order": 8,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "name": "INT",+ "type": "INT",+ "links": [+ 14026+ ]+ }+ ],+ "title": "length",+ "properties": {+ "Node name for S&R": "PrimitiveInt",+ "cnr_id": "comfy-core",+ "ver": "0.5.1"+ },+ "widgets_values": [+ 241,+ "fixed"+ ]+ },+ {+ "id": 5223,+ "type": "CreateVideo",+ "pos": [+ -1805.9191518229377,+ 8313.410516500595+ ],+ "size": [+ 210,+ 78+ ],+ "flags": {},+ "order": 21,+ "mode": 0,+ "inputs": [+ {+ "name": "images",+ "type": "IMAGE",+ "link": 14036+ },+ {+ "name": "audio",+ "shape": 7,+ "type": "AUDIO",+ "link": 14037+ },+ {+ "name": "fps",+ "type": "FLOAT",+ "widget": {+ "name": "fps"+ },+ "link": 13982+ }+ ],+ "outputs": [+ {+ "name": "VIDEO",+ "type": "VIDEO",+ "links": [+ 13979+ ]+ }+ ],+ "properties": {+ "Node name for S&R": "CreateVideo",+ "cnr_id": "comfy-core",+ "ver": "0.5.1"+ },+ "widgets_values": [+ 30+ ]+ },+ {+ "id": 5216,+ "type": "LoraLoaderModelOnly",+ "pos": [+ -3197.2762910684833,+ 8383.672331407945+ ],+ "size": [+ 210,+ 82+ ],+ "flags": {},+ "order": 13,+ "mode": 0,+ "inputs": [+ {+ "name": "model",+ "type": "MODEL",+ "link": 13957+ }+ ],+ "outputs": [+ {+ "name": "MODEL",+ "type": "MODEL",+ "links": [+ 13958+ ]+ }+ ],+ "properties": {+ "Node name for S&R": "LoraLoaderModelOnly",+ "cnr_id": "comfy-core",+ "ver": "0.3.68"+ },+ "widgets_values": [+ "ltx-2-19b-distilled-lora-384.safetensors",+ 0.6+ ]+ },{"id": 5261,"type": "65e1c5bd-6c3a-4569-960f-5a9656bb6cef",@@ -965,15 +909,67 @@]},{- "id": 5233,- "type": "PrimitiveInt",+ "id": 5272,+ "type": "MarkdownNote","pos": [- -2930.33867108064,- 8527.25744685942+ -4097.884850147693,+ 8694.883120289716],"size": [- 210,- 82+ 423.87576766895836,+ 201.4320443144279+ ],+ "flags": {+ "collapsed": false+ },+ "order": 9,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Prompting LTX-2",+ "properties": {},+ "widgets_values": [+ "## LTX-2 Prompting Tips\n1. **Core Actions**: Describe events and actions as they occur over time \n2. **Audio**: Describe sounds and dialogue needed for the scene \n3. **Consistency**: Avoid instructions that do not match the reference image, as this will degrade results\n"+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 5275,+ "type": "MarkdownNote",+ "pos": [+ -4103.084142465534,+ 8076.449221913373+ ],+ "size": [+ 425.40198676408454,+ 574.4981796837719+ ],+ "flags": {+ "collapsed": false+ },+ "order": 10,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Model Links",+ "properties": {},+ "widgets_values": [+ "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b-dev.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-dev.safetensors)\n- [ ltx-2-19b-distilled-lora-384.safetensors ](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled-lora-384.safetensors)\n- [ ltx-2-spatial-upscaler-x2-1.0.safetensors ](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-spatial-upscaler-x2-1.0.safetensors)\n\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized)\n\nPlease download the entire folder - \n\n- Run: \n 1. cd models/text_encoders\n 2. git clone https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized\n\n*Full documentation can be found [here](https://docs.ltx.video/open-source-model/integration-tools/comfy-ui#text-encoder)\n\n**Sampler**\n\n- [RES4LYF](https://github.com/ClownsharkBatwing/RES4LYF)\n\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b-dev.safetensors\nβ βββ π loras/\nβ β βββ ltx-2-19b-distilled-lora-384.safetensors\nβ βββ π latent_upscale_models/ \n βββ ltx-2-spatial-upscaler-x2-1.0.safetensors\n```\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 5218,+ "type": "LTXVGemmaCLIPModelLoader",+ "pos": [+ -3626.512660851144,+ 8639.80634877081+ ],+ "size": [+ 399.66579573119816,+ 106],"flags": {},"order": 11,@@ -981,22 +977,26 @@"inputs": [],"outputs": [{- "name": "INT",- "type": "INT",+ "name": "clip",+ "type": "CLIP","links": [- 14026+ 13963,+ 13964,+ 13965]}],- "title": "length","properties": {- "cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "PrimitiveInt"+ "Node name for S&R": "LTXVGemmaCLIPModelLoader",+ "widget_ue_connectable": {+ "model_path": true,+ "max_length": true+ }},"widgets_values": [- 241,- "fixed"+ "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",+ "ltx-2-19b-dev.safetensors",+ 1024]}],@@ -1222,10 +1222,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": [- 5216- ]+ "flags": {}},{"id": 4,@@ -1238,14 +1235,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": [- 5229,- 5228,- 5226,- 5227,- 5225- ]+ "flags": {}},{"id": 9,@@ -1258,13 +1248,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": [- 5232,- 5235,- 5236,- 5233- ]+ "flags": {}},{"id": 1,@@ -1277,14 +1261,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": [- 5220,- 5219,- 5216,- 5218,- 5270- ]+ "flags": {}},{"id": 13,@@ -1297,11 +1274,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": [- 5221,- 5222- ]+ "flags": {}},{"id": 14,@@ -1314,12 +1287,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": [- 5229,- 5228,- 5227- ]+ "flags": {}}],"definitions": {@@ -1329,7 +1297,7 @@"version": 1,"state": {"lastGroupId": 16,- "lastNodeId": 5262,+ "lastNodeId": 5264,"lastLinkId": 14030,"lastRerouteId": 0},@@ -1554,7 +1522,7 @@46],"flags": {},- "order": 4,+ "order": 6,"mode": 0,"inputs": [{@@ -1583,9 +1551,9 @@}],"properties": {+ "Node name for S&R": "LTXVSeparateAVLatent","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "LTXVSeparateAVLatent"+ "ver": "0.5.1"},"widgets_values": []},@@ -1601,7 +1569,7 @@170],"flags": {},- "order": 5,+ "order": 7,"mode": 0,"inputs": [{@@ -1643,9 +1611,9 @@}],"properties": {+ "Node name for S&R": "EmptyLTXVLatentVideo","cnr_id": "comfy-core",- "ver": "0.3.43",- "Node name for S&R": "EmptyLTXVLatentVideo"+ "ver": "0.3.43"},"widgets_values": [960,@@ -1666,7 +1634,7 @@82],"flags": {},- "order": 6,+ "order": 8,"mode": 0,"inputs": [{@@ -1687,9 +1655,9 @@}],"properties": {+ "Node name for S&R": "ImageScaleBy","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "ImageScaleBy"+ "ver": "0.5.1"},"widgets_values": ["nearest-exact",@@ -1710,7 +1678,7 @@"flags": {"collapsed": false},- "order": 7,+ "order": 9,"mode": 0,"inputs": [{@@ -1749,9 +1717,9 @@}],"properties": {+ "Node name for S&R": "LTXVEmptyLatentAudio","cnr_id": "comfy-core",- "ver": "0.3.64",- "Node name for S&R": "LTXVEmptyLatentAudio"+ "ver": "0.3.64"},"widgets_values": [121,@@ -1773,7 +1741,7 @@"flags": {"collapsed": false},- "order": 8,+ "order": 10,"mode": 0,"inputs": [{@@ -1808,9 +1776,9 @@}],"properties": {+ "Node name for S&R": "GetImageSize","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "GetImageSize"+ "ver": "0.5.1"},"widgets_values": []},@@ -1828,7 +1796,7 @@"flags": {"collapsed": false},- "order": 9,+ "order": 11,"mode": 0,"inputs": [{@@ -1856,9 +1824,9 @@}],"properties": {+ "Node name for S&R": "LTXVConcatAVLatent","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "LTXVConcatAVLatent"+ "ver": "0.5.1"},"widgets_values": []},@@ -1874,7 +1842,7 @@106],"flags": {},- "order": 10,+ "order": 12,"mode": 0,"inputs": [{@@ -1925,9 +1893,9 @@}],"properties": {+ "Node name for S&R": "SamplerCustomAdvanced","cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "SamplerCustomAdvanced"+ "ver": "0.3.71"},"widgets_values": []},@@ -1943,7 +1911,7 @@98],"flags": {},- "order": 11,+ "order": 13,"mode": 0,"inputs": [{@@ -1976,9 +1944,9 @@}],"properties": {+ "Node name for S&R": "CFGGuider","cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "CFGGuider"+ "ver": "0.3.71"},"widgets_values": [1@@ -2012,9 +1980,9 @@}],"properties": {+ "Node name for S&R": "RandomNoise","cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "RandomNoise"+ "ver": "0.3.71"},"widgets_values": [420,@@ -2047,9 +2015,9 @@}],"properties": {+ "Node name for S&R": "ManualSigmas","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "ManualSigmas"+ "ver": "0.5.1"},"widgets_values": ["0.909375, 0.725, 0.421875, 0.0"@@ -2069,7 +2037,7 @@"flags": {"collapsed": false},- "order": 12,+ "order": 14,"mode": 0,"inputs": [{@@ -2096,9 +2064,9 @@}],"properties": {+ "Node name for S&R": "LTXVConcatAVLatent","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "LTXVConcatAVLatent"+ "ver": "0.5.1"},"widgets_values": []},@@ -2128,9 +2096,9 @@}],"properties": {+ "Node name for S&R": "KSamplerSelect","cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "KSamplerSelect"+ "ver": "0.3.71"},"widgets_values": ["res_2s"@@ -2150,7 +2118,7 @@"flags": {"collapsed": false},- "order": 13,+ "order": 15,"mode": 0,"inputs": [{@@ -2183,9 +2151,9 @@}],"properties": {+ "Node name for S&R": "CFGGuider","cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "CFGGuider"+ "ver": "0.3.71"},"widgets_values": [4@@ -2205,7 +2173,7 @@"flags": {"collapsed": false},- "order": 14,+ "order": 16,"mode": 0,"inputs": [{@@ -2227,9 +2195,9 @@}],"properties": {+ "Node name for S&R": "LTXVScheduler","cnr_id": "comfy-core",- "ver": "0.3.64",- "Node name for S&R": "LTXVScheduler"+ "ver": "0.3.64"},"widgets_values": [20,@@ -2265,9 +2233,9 @@}],"properties": {+ "Node name for S&R": "KSamplerSelect","cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "KSamplerSelect"+ "ver": "0.3.71"},"widgets_values": ["res_2s"@@ -2287,7 +2255,7 @@"flags": {"collapsed": false},- "order": 15,+ "order": 17,"mode": 0,"inputs": [{@@ -2316,9 +2284,9 @@}],"properties": {+ "Node name for S&R": "LTXVSeparateAVLatent","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "LTXVSeparateAVLatent"+ "ver": "0.5.1"},"widgets_values": []},@@ -2336,7 +2304,7 @@"flags": {"collapsed": false},- "order": 16,+ "order": 18,"mode": 0,"inputs": [{@@ -2387,9 +2355,9 @@}],"properties": {+ "Node name for S&R": "SamplerCustomAdvanced","cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "SamplerCustomAdvanced"+ "ver": "0.3.71"},"widgets_values": []},@@ -2407,7 +2375,7 @@"flags": {"collapsed": false},- "order": 18,+ "order": 20,"mode": 0,"inputs": [{@@ -2460,7 +2428,7 @@"flags": {"collapsed": false},- "order": 19,+ "order": 21,"mode": 0,"inputs": [{@@ -2487,9 +2455,9 @@}],"properties": {+ "Node name for S&R": "LTXVAudioVAEDecode","cnr_id": "comfy-core",- "ver": "0.3.64",- "Node name for S&R": "LTXVAudioVAEDecode"+ "ver": "0.3.64"},"widgets_values": []},@@ -2507,7 +2475,7 @@"flags": {"collapsed": false},- "order": 17,+ "order": 19,"mode": 0,"inputs": [{@@ -2531,9 +2499,9 @@}],"properties": {+ "Node name for S&R": "RandomNoise","cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "RandomNoise"+ "ver": "0.3.71"},"widgets_values": [43,@@ -2552,7 +2520,7 @@66],"flags": {},- "order": 20,+ "order": 22,"mode": 0,"inputs": [{@@ -2585,11 +2553,63 @@}],"properties": {+ "Node name for S&R": "LTXVLatentUpsampler","cnr_id": "comfy-core",- "ver": "0.7.0",- "Node name for S&R": "LTXVLatentUpsampler"+ "ver": "0.7.0"},"widgets_values": []+ },+ {+ "id": 5263,+ "type": "MarkdownNote",+ "pos": [+ -2394.9683816814745,+ 8056.711232910638+ ],+ "size": [+ 210,+ 88+ ],+ "flags": {+ "collapsed": false+ },+ "order": 4,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Sampler",+ "properties": {},+ "widgets_values": [+ "We recommend using res_2s. \nhttps://github.com/ClownsharkBatwing/RES4LYF\n\nPlease make sure to install RES4LYF"+ ],+ "color": "#432",+ "bgcolor": "#653"+ },+ {+ "id": 5264,+ "type": "MarkdownNote",+ "pos": [+ -1436.2786497293032,+ 8054.554120457318+ ],+ "size": [+ 210,+ 88+ ],+ "flags": {+ "collapsed": false+ },+ "order": 5,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Sampler",+ "properties": {},+ "widgets_values": [+ "We recommend using res_2s. \nhttps://github.com/ClownsharkBatwing/RES4LYF\n\nPlease make sure to install RES4LYF"+ ],+ "color": "#432",+ "bgcolor": "#653"}],"groups": [@@ -2604,8 +2624,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": []+ "flags": {}},{"id": 14,@@ -2618,8 +2637,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": []+ "flags": {}},{"id": 15,@@ -2632,8 +2650,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": []+ "flags": {}}],"links": [diff --git a/example_workflows/LTX-2_V2V_Detailer.json b/example_workflows/LTX-2_V2V_Detailer.jsonindex 8623b90..2dda015 100644--- a/example_workflows/LTX-2_V2V_Detailer.json+++ b/example_workflows/LTX-2_V2V_Detailer.json@@ -1,8 +1,8 @@{"id": "394ed254-7306-42a2-9ae6-aa880ce4456d","revision": 0,- "last_node_id": 4903,- "last_link_id": 13572,+ "last_node_id": 4906,+ "last_link_id": 13574,"nodes": [{"id": 4880,@@ -112,41 +112,6 @@"0"]},- {- "id": 4637,- "type": "KSamplerSelect",- "pos": [- 3724.5096416203287,- 5144.324911502549- ],- "size": [- 210,- 58- ],- "flags": {- "collapsed": true- },- "order": 0,- "mode": 0,- "inputs": [],- "outputs": [- {- "name": "SAMPLER",- "type": "SAMPLER",- "links": [- 13535- ]- }- ],- "properties": {- "cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "KSamplerSelect"- },- "widgets_values": [- "euler"- ]- },{"id": 4896,"type": "ManualSigmas",@@ -161,7 +126,7 @@"flags": {"collapsed": true},- "order": 1,+ "order": 0,"mode": 0,"inputs": [],"outputs": [@@ -174,9 +139,9 @@}],"properties": {+ "Node name for S&R": "ManualSigmas","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "ManualSigmas"+ "ver": "0.5.1"},"widgets_values": ["0.909375, 0.725, 0.421875, 0.0"@@ -213,9 +178,9 @@}],"properties": {+ "Node name for S&R": "ImageScaleToMaxDimension","cnr_id": "comfy-core",- "ver": "0.3.75",- "Node name for S&R": "ImageScaleToMaxDimension"+ "ver": "0.3.75"},"widgets_values": ["lanczos",@@ -263,9 +228,9 @@}],"properties": {+ "Node name for S&R": "CFGGuider","cnr_id": "comfy-core",- "ver": "0.3.75",- "Node name for S&R": "CFGGuider"+ "ver": "0.3.75"},"widgets_values": [1@@ -285,7 +250,7 @@"flags": {"collapsed": true},- "order": 8,+ "order": 9,"mode": 0,"inputs": [{@@ -307,9 +272,9 @@],"title": "CLIP Text Encode (Positive Prompt)","properties": {+ "Node name for S&R": "CLIPTextEncode","cnr_id": "comfy-core",- "ver": "0.3.28",- "Node name for S&R": "CLIPTextEncode"+ "ver": "0.3.28"},"widgets_values": [""@@ -372,9 +337,9 @@}],"properties": {+ "Node name for S&R": "LTXVConditioning","cnr_id": "comfy-core",- "ver": "0.3.28",- "Node name for S&R": "LTXVConditioning"+ "ver": "0.3.28"},"widgets_values": [24@@ -392,13 +357,13 @@66],"flags": {},- "order": 9,+ "order": 8,"mode": 0,"inputs": [{"name": "video","type": "VIDEO",- "link": 13563+ "link": 13574}],"outputs": [@@ -426,9 +391,9 @@}],"properties": {+ "Node name for S&R": "GetVideoComponents","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "GetVideoComponents"+ "ver": "0.5.1"},"widgets_values": []},@@ -444,7 +409,7 @@114],"flags": {},- "order": 2,+ "order": 1,"mode": 0,"inputs": [],"outputs": [@@ -471,47 +436,14 @@}],"properties": {+ "Node name for S&R": "CheckpointLoaderSimple","cnr_id": "comfy-core",- "ver": "0.3.56",- "Node name for S&R": "CheckpointLoaderSimple"+ "ver": "0.3.56"},"widgets_values": ["ltx-2-19b-dev.safetensors"]},- {- "id": 4879,- "type": "LTXVGemmaCLIPModelLoader",- "pos": [- 2645.621069544761,- 5316.232101812384- ],- "size": [- 379.3903759440785,- 106- ],- "flags": {},- "order": 3,- "mode": 0,- "inputs": [],- "outputs": [- {- "name": "clip",- "type": "CLIP",- "links": [- 13531- ]- }- ],- "properties": {- "Node name for S&R": "LTXVGemmaCLIPModelLoader"- },- "widgets_values": [- "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",- "ltx-2-19b-dev.safetensors",- 1024- ]- },{"id": 4638,"type": "RandomNoise",@@ -526,7 +458,7 @@"flags": {"collapsed": true},- "order": 4,+ "order": 2,"mode": 0,"inputs": [],"outputs": [@@ -539,9 +471,9 @@}],"properties": {+ "Node name for S&R": "RandomNoise","cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "RandomNoise"+ "ver": "0.3.71"},"widgets_values": [42,@@ -585,9 +517,9 @@}],"properties": {+ "Node name for S&R": "VAEEncodeTiled","cnr_id": "comfy-core",- "ver": "0.3.75",- "Node name for S&R": "VAEEncodeTiled"+ "ver": "0.3.75"},"widgets_values": [512,@@ -641,9 +573,9 @@}],"properties": {+ "Node name for S&R": "CreateVideo","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "CreateVideo"+ "ver": "0.5.1"},"widgets_values": [30@@ -697,32 +629,6 @@"auto"]},- {- "id": 4903,- "type": "MarkdownNote",- "pos": [- 1855.7109853800114,- 4980.619423097231- ],- "size": [- 437.0159573854221,- 449.95073620797575- ],- "flags": {- "collapsed": false- },- "order": 5,- "mode": 0,- "inputs": [],- "outputs": [],- "title": "Model Links",- "properties": {},- "widgets_values": [- "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b-distilled.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled.safetensors)\n- [ltx-2-19b.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b.safetensors)\n- [Detailer](https://huggingface.co/Lightricks/LTX-2-19b-IC-LoRA-Detailer/tree/main/ltx-2-19b-ic-lora-detailer.safetensors)\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-pt)\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ comfy_gemma_3_12B_it.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b-distilled.safetensors\nβ β βββ ltx-2-19b.safetensors\nβ βββ π loras/\nβ β βββ ltx-2-19b-ic-lora-detailer.safetensors\n\n```\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"- ],- "color": "#432",- "bgcolor": "#653"- },{"id": 4712,"type": "LoraLoaderModelOnly",@@ -755,12 +661,12 @@}],"properties": {+ "Node name for S&R": "LoraLoaderModelOnly","cnr_id": "comfy-core",- "ver": "0.3.71",- "Node name for S&R": "LoraLoaderModelOnly"+ "ver": "0.3.71"},"widgets_values": [- "ltxv/ltx2/ltx-2-19b-ic-lora-detailer.safetensors",+ "ltx-2-19b-ic-lora-detailer.safetensors",1]},@@ -797,7 +703,7 @@]},{- "id": 4897,+ "id": 4905,"type": "LoadVideo","pos": [2319.858539378856,@@ -805,10 +711,10 @@],"size": [282.798828125,- 234.25266927083334+ 233.0743408203125],"flags": {},- "order": 6,+ "order": 3,"mode": 0,"inputs": [],"outputs": [@@ -816,19 +722,113 @@"name": "VIDEO","type": "VIDEO","links": [- 13563+ 13574]}],"properties": {+ "Node name for S&R": "LoadVideo","cnr_id": "comfy-core",- "ver": "0.5.1",- "Node name for S&R": "LoadVideo"+ "ver": "0.7.0"},"widgets_values": [- "buildings.mp4",+ "video.mp4","image"]+ },+ {+ "id": 4637,+ "type": "KSamplerSelect",+ "pos": [+ 3724.5096416203287,+ 5144.324911502549+ ],+ "size": [+ 210,+ 58+ ],+ "flags": {+ "collapsed": true+ },+ "order": 4,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "name": "SAMPLER",+ "type": "SAMPLER",+ "links": [+ 13535+ ]+ }+ ],+ "properties": {+ "Node name for S&R": "KSamplerSelect",+ "cnr_id": "comfy-core",+ "ver": "0.3.71"+ },+ "widgets_values": [+ "euler"+ ]+ },+ {+ "id": 4879,+ "type": "LTXVGemmaCLIPModelLoader",+ "pos": [+ 2645.621069544761,+ 5316.232101812384+ ],+ "size": [+ 379.3903759440785,+ 106+ ],+ "flags": {},+ "order": 5,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "name": "clip",+ "type": "CLIP",+ "links": [+ 13531+ ]+ }+ ],+ "properties": {+ "Node name for S&R": "LTXVGemmaCLIPModelLoader"+ },+ "widgets_values": [+ "gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors",+ "ltx-2-19b-dev.safetensors",+ 1024+ ]+ },+ {+ "id": 4903,+ "type": "MarkdownNote",+ "pos": [+ 1856.581308246473,+ 4973.559765691965+ ],+ "size": [+ 443.7870356486201,+ 476.6587823511936+ ],+ "flags": {+ "collapsed": false+ },+ "order": 6,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Model Links",+ "properties": {},+ "widgets_values": [+ "## Model Links\n\n**LTX-2 Model Weights**\n\n- [ltx-2-19b-dev.safetensors](https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-dev.safetensors)\n- [ltx-2-19b-ic-lora-detailer.safetensors](https://huggingface.co/Lightricks/LTX-2-19b-IC-LoRA-Detailer/resolve/main/ltx-2-19b-ic-lora-detailer.safetensors)\n\n**Text Encoder**\n- [Google Gemma 3](https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized)\n\nPlease download the entire folder - \n\n- Run: \n 1. cd models/text_encoders\n 2. git clone https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized\n\n*Full documentation can be found [here](https://docs.ltx.video/open-source-model/integration-tools/comfy-ui#text-encoder)\n\n**Model Storage Location**\n\n```\nπ ComfyUI/\nβββ π models/\nβ βββ π text_encoders/\nβ β βββ gemma-3-12b-it-qat-q4_0-unquantized/model-00001-of-00005.safetensors\nβ βββ π checkpoints/\nβ β βββ ltx-2-19b-dev.safetensors\nβ βββ π loras/\nβ β βββ ltx-2-19b-ic-lora-detailer.safetensors\n\n```\n\n## Report Issues\nTo report any issues when running this workflow, [go to GitHub](https://github.com/Lightricks/ComfyUI-LTXVideo/issues)\n"+ ],+ "color": "#432",+ "bgcolor": "#653"}],"links": [@@ -976,14 +976,6 @@4,"SIGMAS"],- [- 13563,- 4897,- 0,- 4898,- 0,- "VIDEO"- ],[13564,4898,@@ -1039,6 +1031,14 @@4899,0,"VAE"+ ],+ [+ 13574,+ 4905,+ 0,+ 4898,+ 0,+ "VIDEO"]],"groups": [@@ -1053,12 +1053,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": [- 4521,- 4879,- 4712- ]+ "flags": {}},{"id": 128,@@ -1071,10 +1066,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": [- 4897- ]+ "flags": {}},{"id": 129,@@ -1087,19 +1079,7 @@],"color": "#3f789e","font_size": 24,- "flags": {},- "nodes": [- 4880,- 4637,- 4896,- 4784,- 4878,- 2483,- 1241,- 4638,- 4866,- 4899- ]+ "flags": {}}],"config": {},diff --git a/gemma_encoder_mgpu_loader.py b/gemma_encoder_mgpu_loader.pydeleted file mode 100644index 3ec743c..0000000--- a/gemma_encoder_mgpu_loader.py+++ /dev/null@@ -1,297 +0,0 @@-import json-import logging-import weakref-from pathlib import Path-from types import MethodType--import accelerate-import comfy.sd-import comfy.supported_models_base-import folder_paths-import safetensors-import torch-from comfy.ldm.lightricks.model import LTXFrequenciesPrecision, LTXRopeType-from comfy.utils import load_torch_file-from transformers import (- AutoImageProcessor,- Gemma3ForConditionalGeneration,- Gemma3Processor,-)--from .embeddings_connector import Embeddings1DConnector-from .gemma_encoder import (- GemmaFeaturesExtractorProjLinear,- LTXVGemmaTextEncoderModel,- find_matching_dir,- ltxv_gemma_tokenizer,-)-from .nodes_registry import comfy_node--logger = logging.getLogger(__name__)--PREFIX_BASE = "model.diffusion_model."---def _is_device_like(x):- return isinstance(x, (str, torch.device, int)) or isinstance(- x, torch.Tensor- ) # to(tensor) β matches tensor's device/dtype---def _is_dtype_like(x):- # torch.float16 / torch.bfloat16 / torch.float32, etc.- return isinstance(x, torch.dtype)---def protect_module_transfers(module: torch.nn.Module, warn=False):- """- Make .to/.cuda/.cpu NO-OPs for device moves across an entire module tree,- while still allowing dtype/memory_format conversions.- """-- def wrap_one(m: torch.nn.Module):- if hasattr(m, "__to_patched"): # idempotent- return-- orig_to = m.__class__.to- proxy = weakref.proxy(m)-- def safe_to(self, *args, **kwargs):- # Block explicit/implicit device moves- device_in_kwargs = "device" in kwargs- device_like_positional = len(args) > 0 and _is_device_like(args[0])-- # Allow pure dtype/memory_format conversions:- # .to(torch.float16)- # .to(dtype=torch.float16)- # .to(memory_format=...)-- if device_in_kwargs or device_like_positional:- if warn:- print("[protect_module_transfers] Ignoring device move .to(...).")- return self # NO-OP for device moves-- # Otherwise (dtype / memory_format / non_blocking without device) β delegate- return orig_to(self, *args, **kwargs)-- # Bind methods- m.to = MethodType(safe_to, proxy)- m.cuda = MethodType(lambda self, *a, **k: self, proxy) # NO-OP- m.cpu = MethodType(lambda self, *a, **k: self, proxy) # NO-OP- m.__to_patched = True-- # Recurse over the whole tree- for sub in module.modules(): # includes module itself and children- wrap_one(sub)-- return module---def load_proj_matrix_from_ltxv(ltxv_path: Path, prefix=""):- with safetensors.safe_open(ltxv_path, framework="pt", device="cpu") as f:- keys = filter(lambda key: key.startswith(prefix), f.keys())- sd = {k.removeprefix(prefix): f.get_tensor(k) for k in keys if k in f.keys()}-- if not sd:- return None-- with torch.device("meta"):- model = GemmaFeaturesExtractorProjLinear()-- for name, tensor in sd.items():- accelerate.utils.set_module_tensor_to_device(model, name, "cpu", value=tensor)-- device_map = accelerate.infer_auto_device_map(- model,- max_memory=None,- )-- model = accelerate.dispatch_model(- model,- device_map=device_map,- )-- return model---def load_proj_matrix_from_checkpoint(checkpoint_path: Path):- """- Load model weights from a checkpoint file.- :param checkpoint_path: Path to the checkpoint file.- """- with torch.device("meta"):- model = GemmaFeaturesExtractorProjLinear()- model = accelerate.load_checkpoint_and_dispatch(- model, str(checkpoint_path.resolve()), device_map="auto"- )- return model---def ltxv_gemma_clip(encoder_path, ltxv_path, processor=None, dtype=None):- class _LTXVGemmaTextEncoderModel(LTXVGemmaTextEncoderModel):- def __init__(self, device="cpu", dtype=dtype, model_options={}):- dtype = torch.bfloat16 # TODO: make this configurable- gemma_model = Gemma3ForConditionalGeneration.from_pretrained(- encoder_path,- local_files_only=True,- torch_dtype=dtype,- device_map="auto",- )-- feature_extractor_linear = load_proj_matrix_from_ltxv(- ltxv_path, "text_embedding_projection."- )- if feature_extractor_linear is None:- feature_extractor_linear = load_proj_matrix_from_checkpoint(- encoder_path / "proj_linear.safetensors"- )-- embeddings_connector = load_video_embeddings_connector(ltxv_path)- audio_embeddings_connector = load_audio_embeddings_connector(ltxv_path)- super().__init__(- model=gemma_model,- feature_extractor_linear=feature_extractor_linear,- embeddings_connector=embeddings_connector,- audio_embeddings_connector=audio_embeddings_connector,- processor=processor,- dtype=dtype,- device=device,- )-- # Due to memory management issue on mgpu we need to disable the offloading of sharded gemma model.- protect_module_transfers(self)-- return _LTXVGemmaTextEncoderModel---def load_video_embeddings_connector(ltxv_path, dtype=torch.bfloat16):- sd, metadata = load_torch_file(str(ltxv_path), return_metadata=True)- config = json.loads(metadata.get("config", "{}"))- transformer_config = config.get("transformer", {})- rope_type = LTXRopeType.from_dict(transformer_config)- frequencies_precision = LTXFrequenciesPrecision.from_dict(transformer_config)- pe_max_pos = transformer_config.get("connector_positional_embedding_max_pos", [1])- sd_keys = list(sd.keys())-- video_only_connector_prefix = f"{PREFIX_BASE}embeddings_connector."- av_connector_prefix = f"{PREFIX_BASE}video_embeddings_connector."- prefix = (- av_connector_prefix- if f"{PREFIX_BASE}audio_adaln_single.linear.weight" in sd_keys- else video_only_connector_prefix- )- return load_embeddings_connector(- sd, prefix, dtype, rope_type, frequencies_precision, pe_max_pos- )---def load_audio_embeddings_connector(ltxv_path, dtype=torch.bfloat16):- sd, metadata = load_torch_file(str(ltxv_path), return_metadata=True)- config = json.loads(metadata.get("config", "{}"))- transformer_config = config.get("transformer", {})- rope_type = LTXRopeType.from_dict(transformer_config)- frequencies_precision = LTXFrequenciesPrecision.from_dict(transformer_config)- pe_max_pos = transformer_config.get("connector_positional_embedding_max_pos", [1])- return load_embeddings_connector(- sd,- f"{PREFIX_BASE}audio_embeddings_connector.",- dtype,- rope_type,- frequencies_precision,- pe_max_pos,- )---def load_embeddings_connector(- sd,- connector_prefix,- dtype=torch.bfloat16,- rope_type=LTXRopeType.INTERLEAVED,- frequencies_precision=LTXFrequenciesPrecision.FLOAT32,- pe_max_pos=None,-):- sd_connector = {- k[len(connector_prefix) :]: v- for k, v in sd.items()- if k.startswith(connector_prefix)- }-- if len(sd_connector) == 0:- return None-- operations = comfy.ops.pick_operations(dtype, dtype, disable_fast_fp8=True)- connector = Embeddings1DConnector(- dtype=dtype,- operations=operations,- positional_embedding_max_pos=pe_max_pos if pe_max_pos is not None else [1],- split_rope=rope_type == LTXRopeType.SPLIT,- double_precision_rope=frequencies_precision == LTXFrequenciesPrecision.FLOAT64,- )- connector.load_state_dict(sd_connector)- device_map = accelerate.infer_auto_device_map(connector)- connector = accelerate.dispatch_model(connector, device_map=device_map)- return connector---@comfy_node(- name="LTXVGemmaCLIPModelLoaderMGPU", description="Gemma 3 Model Loader on MGPU"-)-class LTXVGemmaCLIPModelLoaderMGPU:- @classmethod- def INPUT_TYPES(s):- return {- "required": {- "gemma_path": (- folder_paths.get_filename_list("text_encoders"),- {"tooltip": "The name of the text encoder model to load."},- ),- "ltxv_path": (- folder_paths.get_filename_list("checkpoints"),- {"tooltip": "The name of the ltxv model to load."},- ),- "max_length": (- "INT",- {"default": 1024, "min": 16, "max": 131072, "step": 8},- ),- }- }-- RETURN_TYPES = ("CLIP",)- RETURN_NAMES = ("clip",)- FUNCTION = "load_model"- CATEGORY = "lightricks/LTXV"- TITLE = "LTXV Gemma CLIP Loader"- OUTPUT_NODE = False-- def load_model(self, gemma_path: str, ltxv_path: str, max_length: int):- path = Path(folder_paths.get_full_path("text_encoders", gemma_path))- model_root = path.parents[1]- tokenizer_path = Path(find_matching_dir(model_root, "tokenizer.model"))- gemma_model_path = Path(find_matching_dir(model_root, "model*.safetensors"))-- tokenizer_class = ltxv_gemma_tokenizer(tokenizer_path, max_length=max_length)-- processor = None- try:- image_processor = AutoImageProcessor.from_pretrained(- str(model_root),- local_files_only=True,- )- processor = Gemma3Processor(- image_processor=image_processor,- tokenizer=tokenizer_class().tokenizer,- )- logger.info(f"Loaded processor from {model_root} - enhancement enabled")- except Exception as e:- logger.warning(f"Could not load processor from {model_root}: {e}")-- clip_dtype = torch.bfloat16- ltxv_full_path = folder_paths.get_full_path("checkpoints", ltxv_path)- clip_target = comfy.supported_models_base.ClipTarget(- tokenizer=tokenizer_class,- clip=ltxv_gemma_clip(- gemma_model_path, ltxv_full_path, processor=processor, dtype=clip_dtype- ),- )-- return (comfy.sd.CLIP(clip_target),)diff --git a/requirements.txt b/requirements.txtindex 7464b16..5649927 100644--- a/requirements.txt+++ b/requirements.txt@@ -1,4 +1,3 @@-acceleratediffuserseinopshuggingface_hub>=0.25.2