Skip to content

LTX-Video Support for ComfyUI

Automated PR - 2025-07-08

sync-bot688efe72d219
diff --git a/README.md b/README.md
index e7b0fb3..0f1c335 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,36 @@
# ComfyUI-LTXVideo
+[![GitHub](https://img.shields.io/badge/LTXV-Repo-blue?logo=github)](https://github.com/Lightricks/LTX-Video)
+[![Website](https://img.shields.io/badge/Website-LTXV-181717?logo=google-chrome)](https://www.lightricks.com/ltxv)
+[![Model](https://img.shields.io/badge/HuggingFace-Model-orange?logo=huggingface)](https://huggingface.co/Lightricks/LTX-Video)
+[![LTXV Trainer](https://img.shields.io/badge/LTXV-Trainer%20Repo-9146FF)](https://github.com/Lightricks/LTX-Video-Trainer)
+[![Demo](https://img.shields.io/badge/Demo-Try%20Now-brightgreen?logo=vercel)](https://app.ltx.studio/ltx-video)
+[![Paper](https://img.shields.io/badge/Paper-arXiv-B31B1B?logo=arxiv)](https://arxiv.org/abs/2501.00103)
+[![Discord](https://img.shields.io/badge/Join-Discord-5865F2?logo=discord)](https://discord.gg/Mn8BRgUKKy)
+
ComfyUI-LTXVideo is a collection of custom nodes for ComfyUI, designed to provide useful tools for working with the LTXV model.
The model itself is supported in the core ComfyUI [code](https://github.com/comfyanonymous/ComfyUI/tree/master/comfy/ldm/lightricks).
The main LTXVideo repository can be found [here](https://github.com/Lightricks/LTX-Video).
+# ⭐ 8.07.2025 - LTXVideo ICLora Release ⭐
+### 🚀 What's New in LTXVideo ICLoRA
+
+1. **Three New ICLoRA Models**
+ Introducing powerful in-context LoRA models that enable precise control over video generation:
+ - Depth Control: [LTX-Video-ICLoRA-depth-13b-0.9.7](https://huggingface.co/Lightricks/LTX-Video-ICLoRA-depth-13b-0.9.7)
+ - Pose Control: [LTX-Video-ICLoRA-pose-13b-0.9.7](https://huggingface.co/Lightricks/LTX-Video-ICLoRA-pose-13b-0.9.7)
+ - Edge/Canny Control: [LTX-Video-ICLoRA-canny-13b-0.9.7](https://huggingface.co/Lightricks/LTX-Video-ICLoRA-canny-13b-0.9.7)
+
+2. **New Node: 🅛🅣🅧 LTXV In Context Sampler**
+ A dedicated node for seamlessly integrating ICLoRA models into your workflow, enabling fine-grained control over video generation using depth maps, pose estimation, or edge detection.
+
+3. **Example Workflow**
+ Check out [example workflow](#iclora) for a complete example demonstrating how to use the ICLoRA models effectively.
+
+4. **Custom ICLoRA Training**
+ We've released a trainer that allows you to create your own specialized ICLoRA models for custom control signals. Check out the [trainer repository](https://github.com/Lightricks/LTX-Video-Trainer) to get started.
+
+
# ⭐ 9.06.2025 – LTXVideo VAE Patcher, Mask manipulation and Q8 LoRA loader nodes. ⭐
1. **LTXV Patcher VAE**<br> The new node improves VAE decoding performance by reducing runtime and cutting memory consumption by up to 50%. This allows generation of higher-resolution outputs on consumer-grade GPUs with limited VRAM, without needing to load the VAE partially or decode in tiles.<br>
⚠️ On *Windows*, you may need to add the paths to the *MSVC compiler (cl.exe)* and *ninja.exe* to your system environment PATH variable. <br>
@@ -154,6 +181,9 @@ Note that to run the example workflows, you need to have some additional custom
🧩 [Image to video with duration extension](example_workflows/13b-distilled/ltxv-13b-dist-i2v-extend.json)<br>
🧩 [Image to video 8b quantized](example_workflows/13b-distilled/ltxv-13b-dist-i2v-base-fp8.json)
+### ICLora
+🧩 [Download workflow](example_workflows/ic_lora/ic-lora.json)
+
### Inversion
#### Flow Edit
diff --git a/__init__.py b/__init__.py
index 0efd049..940067c 100644
--- a/__init__.py
+++ b/__init__.py
@@ -1,5 +1,10 @@
from .decoder_noise import DecoderNoise
-from .easy_samplers import LTXVBaseSampler
+from .easy_samplers import (
+ LinearOverlapLatentTransition,
+ LTXVBaseSampler,
+ LTXVExtendSampler,
+ LTXVInContextSampler,
+)
from .film_grain import LTXVFilmGrain
from .guide import LTXVAddGuideAdvanced
from .latent_adain import LTXVAdainLatent
@@ -13,26 +18,28 @@ from .nodes_registry import (
from .nodes_registry import NODES_DISPLAY_NAME_PREFIX, camel_case_to_spaces
from .prompt_enhancer_nodes import LTXVPromptEnhancer, LTXVPromptEnhancerLoader
from .q8_nodes import LTXVQ8LoraModelLoader, LTXVQ8Patch
-from .recurrent_sampler import LinearOverlapLatentTransition, LTXVRecurrentKSampler
from .stg import (
LTXVApplySTG,
STGAdvancedPresetsNode,
STGGuiderAdvancedNode,
STGGuiderNode,
)
-from .tiled_sampler import LTXVTiledSampler
+from .tiled_sampler import LTXVLoopingSampler, LTXVTiledSampler, MultiPromptProvider
from .tricks import NODE_CLASS_MAPPINGS as TRICKS_NODE_CLASS_MAPPINGS
from .tricks import NODE_DISPLAY_NAME_MAPPINGS as TRICKS_NODE_DISPLAY_NAME_MAPPINGS
+from .utiltily_nodes import ImageToCPU
from .vae_patcher.vae_patcher import LTXVPatcherVAE
# Static node mappings, required for ComfyUI-Manager mapping to work
NODE_CLASS_MAPPINGS = {
"Set VAE Decoder Noise": DecoderNoise,
- "LinearOverlapLatentTransition": LinearOverlapLatentTransition,
+ "LTXVLinearOverlapLatentTransition": LinearOverlapLatentTransition,
"LTXVAddGuideAdvanced": LTXVAddGuideAdvanced,
"LTXVAdainLatent": LTXVAdainLatent,
"LTXVApplySTG": LTXVApplySTG,
"LTXVBaseSampler": LTXVBaseSampler,
+ "LTXVInContextSampler": LTXVInContextSampler,
+ "LTXVExtendSampler": LTXVExtendSampler,
"LTXVFilmGrain": LTXVFilmGrain,
"LTXVPreprocessMasks": LTXVPreprocessMasks,
"LTXVLatentUpsampler": LTXVLatentUpsampler,
@@ -41,13 +48,15 @@ NODE_CLASS_MAPPINGS = {
"LTXVPromptEnhancerLoader": LTXVPromptEnhancerLoader,
"LTXQ8Patch": LTXVQ8Patch,
"LTXVQ8LoraModelLoader": LTXVQ8LoraModelLoader,
- "LTXVRecurrentKSampler": LTXVRecurrentKSampler,
"LTXVSelectLatents": LTXVSelectLatents,
"LTXVSetVideoLatentNoiseMasks": LTXVSetVideoLatentNoiseMasks,
"LTXVTiledSampler": LTXVTiledSampler,
+ "LTXVLoopingSampler": LTXVLoopingSampler,
"STGAdvancedPresets": STGAdvancedPresetsNode,
"STGGuiderAdvanced": STGGuiderAdvancedNode,
"STGGuiderNode": STGGuiderNode,
+ "LTXVMultiPromptProvider": MultiPromptProvider,
+ "ImageToCPU": ImageToCPU,
}
# Consistent display names between static and dynamic node mappings in nodes_registry.py,
diff --git a/easy_samplers.py b/easy_samplers.py
index 1b988b7..0a4f50a 100644
--- a/easy_samplers.py
+++ b/easy_samplers.py
@@ -3,6 +3,7 @@ import copy
import comfy
import comfy_extras
import nodes
+import torch
from comfy_extras.nodes_custom_sampler import SamplerCustomAdvanced
from comfy_extras.nodes_lt import (
EmptyLTXVLatentVideo,
@@ -10,11 +11,12 @@ from comfy_extras.nodes_lt import (
LTXVCropGuides,
LTXVImgToVideo,
)
+from nodes import VAEEncode
from .guide import blur_internal
+from .latent_adain import LTXVAdainLatent
from .latents import LTXVAddLatentGuide, LTXVSelectLatents
from .nodes_registry import comfy_node
-from .recurrent_sampler import LinearOverlapLatentTransition
@comfy_node(
@@ -26,8 +28,8 @@ class LTXVBaseSampler:
def INPUT_TYPES(s):
return {
"required": {
- "model": ("MODEL",),
- "vae": ("VAE",),
+ "model": ("MODEL", {"tooltip": "The diffusion model to use."}),
+ "vae": ("VAE", {"tooltip": "The VAE to use."}),
"width": (
"INT",
{
@@ -50,23 +52,64 @@ class LTXVBaseSampler:
"INT",
{"default": 97, "min": 1, "max": nodes.MAX_RESOLUTION, "step": 8},
),
- "guider": ("GUIDER",),
- "sampler": ("SAMPLER",),
- "sigmas": ("SIGMAS",),
- "noise": ("NOISE",),
+ "guider": (
+ "GUIDER",
+ {"tooltip": "The guider to use, must be a STGGuiderAdvanced."},
+ ),
+ "sampler": ("SAMPLER", {"tooltip": "The sampler to use."}),
+ "sigmas": ("SIGMAS", {"tooltip": "The sigmas to use."}),
+ "noise": ("NOISE", {"tooltip": "The noise to use for the sampling."}),
},
"optional": {
- "optional_cond_images": ("IMAGE",),
- "optional_cond_indices": ("STRING",),
- "strength": ("FLOAT", {"default": 0.9, "min": 0, "max": 1}),
- "crop": (["center", "disabled"], {"default": "disabled"}),
- "crf": ("INT", {"default": 35, "min": 0, "max": 100}),
- "blur": ("INT", {"default": 0, "min": 0, "max": 10}),
+ "optional_cond_images": (
+ "IMAGE",
+ {"tooltip": "The images to use for conditioning the sampling."},
+ ),
+ "optional_cond_indices": (
+ "STRING",
+ {
+ "tooltip": "The indices of the images to use for conditioning the sampling."
+ },
+ ),
+ "strength": (
+ "FLOAT",
+ {
+ "default": 0.9,
+ "min": 0,
+ "max": 1,
+ "tooltip": "The strength of the conditioning on the images.",
+ },
+ ),
+ "crop": (
+ ["center", "disabled"],
+ {
+ "default": "disabled",
+ "tooltip": "The crop mode to use for the images.",
+ },
+ ),
+ "crf": (
+ "INT",
+ {
+ "default": 35,
+ "min": 0,
+ "max": 100,
+ "tooltip": "The CRF value to use for preprocessing the images.",
+ },
+ ),
+ "blur": (
+ "INT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 10,
+ "tooltip": "The blur value to use for preprocessing the images.",
+ },
+ ),
},
}
- RETURN_TYPES = ("LATENT",)
- RETURN_NAMES = ("denoised_output",)
+ RETURN_TYPES = ("LATENT", "CONDITIONING", "CONDITIONING")
+ RETURN_NAMES = ("denoised_output", "positive", "negative")
FUNCTION = "sample"
CATEGORY = "sampling"
@@ -101,7 +144,6 @@ class LTXVBaseSampler:
.movedim(1, -1)
.clamp(0, 1)
)
- print("optional_cond_images shape", optional_cond_images.shape)
optional_cond_images = comfy_extras.nodes_lt.LTXVPreprocess().preprocess(
optional_cond_images, crf
)[0]
@@ -175,15 +217,13 @@ class LTXVBaseSampler:
)
# Clean up guides if image conditioning was used
- print("before guide crop", denoised_output_latents["samples"].shape)
positive, negative, denoised_output_latents = LTXVCropGuides().crop(
positive=positive,
negative=negative,
latent=denoised_output_latents,
)
- print("after guide crop", denoised_output_latents["samples"].shape)
- return (denoised_output_latents,)
+ return (denoised_output_latents, positive, negative)
@comfy_node(
@@ -195,26 +235,59 @@ class LTXVExtendSampler:
def INPUT_TYPES(s):
return {
"required": {
- "model": ("MODEL",),
- "vae": ("VAE",),
- "latents": ("LATENT",),
+ "model": ("MODEL", {"tooltip": "The diffusion model to use."}),
+ "vae": ("VAE", {"tooltip": "The VAE to use."}),
+ "latents": (
+ "LATENT",
+ {"tooltip": "The latents of the video to extend."},
+ ),
"num_new_frames": (
"INT",
- {"default": 80, "min": 8, "max": nodes.MAX_RESOLUTION, "step": 8},
+ {
+ "default": 80,
+ "min": -1,
+ "max": nodes.MAX_RESOLUTION,
+ "step": 8,
+ "tooltip": "If -1, the number of frames will be based on the number of frames in the optional_guiding_latents.",
+ },
),
"frame_overlap": (
"INT",
- {"default": 16, "min": 16, "max": 128, "step": 8},
+ {
+ "default": 16,
+ "min": 16,
+ "max": 128,
+ "step": 8,
+ "tooltip": "The overlap region to use for conditioning the new frames on the end of the provided latents.",
+ },
+ ),
+ "guider": (
+ "GUIDER",
+ {"tooltip": "The guider to use, must be a STGGuiderAdvanced."},
+ ),
+ "sampler": ("SAMPLER", {"tooltip": "The sampler to use."}),
+ "sigmas": ("SIGMAS", {"tooltip": "The sigmas to use."}),
+ "noise": ("NOISE", {"tooltip": "The noise to use for the sampling."}),
+ "strength": (
+ "FLOAT",
+ {
+ "default": 0.5,
+ "min": 0.0,
+ "max": 1.0,
+ "tooltip": "The strength of the conditioning on the overlapping latents, when using optional_guiding_latents.",
+ },
+ ),
+ },
+ "optional": {
+ "optional_guiding_latents": (
+ "LATENT",
+ {"tooltip": "Optional latents to guide the sampling."},
),
- "guider": ("GUIDER",),
- "sampler": ("SAMPLER",),
- "sigmas": ("SIGMAS",),
- "noise": ("NOISE",),
},
}
- RETURN_TYPES = ("LATENT",)
- RETURN_NAMES = ("denoised_output",)
+ RETURN_TYPES = ("LATENT", "CONDITIONING", "CONDITIONING")
+ RETURN_NAMES = ("denoised_output", "positive", "negative")
FUNCTION = "sample"
CATEGORY = "sampling"
@@ -229,6 +302,14 @@ class LTXVExtendSampler:
sampler,
sigmas,
noise,
+ strength=0.5,
+ guiding_strength=1.0,
+ optional_guiding_latents=None,
+ optional_reference_latents=None,
+ adain_factor=0.0,
+ optional_negative_index_latents=None,
+ optional_negative_index=-1,
+ optional_negative_index_strength=1.0,
):
try:
@@ -246,6 +327,11 @@ class LTXVExtendSampler:
)
overlap = frame_overlap // time_scale_factor
+ if num_new_frames == -1 and optional_guiding_latents is not None:
+ num_new_frames = (
+ optional_guiding_latents["samples"].shape[2] - overlap
+ ) * time_scale_factor
+
(last_overlap_latents,) = LTXVSelectLatents().select_latents(
latents, -overlap, -1
)
@@ -256,7 +342,7 @@ class LTXVExtendSampler:
length=overlap * time_scale_factor + num_new_frames,
batch_size=1,
)[0]
- print("new_latents shape: ", new_latents["samples"].shape)
+
(
positive,
negative,
@@ -268,9 +354,41 @@ class LTXVExtendSampler:
latent=new_latents,
guiding_latent=last_overlap_latents,
latent_idx=0,
- strength=1.0,
+ strength=strength,
)
+ if optional_guiding_latents is not None:
+ optional_guiding_latents = LTXVSelectLatents().select_latents(
+ optional_guiding_latents, overlap, -1
+ )[0]
+ (
+ positive,
+ negative,
+ new_latents,
+ ) = LTXVAddLatentGuide().generate(
+ vae=vae,
+ positive=positive,
+ negative=negative,
+ latent=new_latents,
+ guiding_latent=optional_guiding_latents,
+ latent_idx=last_overlap_latents["samples"].shape[2],
+ strength=guiding_strength,
+ )
+ if optional_negative_index_latents is not None:
+ (
+ positive,
+ negative,
+ new_latents,
+ ) = LTXVAddLatentGuide().generate(
+ vae=vae,
+ positive=positive,
+ negative=negative,
+ latent=new_latents,
+ guiding_latent=optional_negative_index_latents,
+ latent_idx=optional_negative_index,
+ strength=optional_negative_index_strength,
+ )
+
guider = copy.copy(guider)
guider.set_conds(positive, negative)
@@ -284,21 +402,245 @@ class LTXVExtendSampler:
)
# Clean up guides if image conditioning was used
- print("before guide crop", denoised_output_latents["samples"].shape)
positive, negative, denoised_output_latents = LTXVCropGuides().crop(
positive=positive,
negative=negative,
latent=denoised_output_latents,
)
- print("after guide crop", denoised_output_latents["samples"].shape)
# drop first output latent as it's a reinterpreted 8-frame latent understood as a 1-frame latent
truncated_denoised_output_latents = LTXVSelectLatents().select_latents(
denoised_output_latents, 1, -1
)[0]
+
+ if optional_reference_latents is not None:
+ truncated_denoised_output_latents = LTXVAdainLatent().batch_normalize(
+ latents=truncated_denoised_output_latents,
+ reference=optional_reference_latents,
+ factor=adain_factor,
+ )[0]
+
# Fuse new frames with old ones by calling LinearOverlapLatentTransition
(latents,) = LinearOverlapLatentTransition().process(
latents, truncated_denoised_output_latents, overlap - 1, axis=2
)
- print("latents shape after linear overlap blend: ", latents["samples"].shape)
- return (latents,)
+ return (latents, positive, negative)
+
+
+@comfy_node(
+ name="LTXVInContextSampler",
+)
+class LTXVInContextSampler:
+
+ @classmethod
+ def INPUT_TYPES(s):
+ return {
+ "required": {
+ "vae": ("VAE", {"tooltip": "The VAE to use."}),
+ "guider": (
+ "GUIDER",
+ {"tooltip": "The guider to use, must be a STGGuiderAdvanced."},
+ ),
+ "sampler": ("SAMPLER", {"tooltip": "The sampler to use."}),
+ "sigmas": ("SIGMAS", {"tooltip": "The sigmas to use."}),
+ "noise": ("NOISE", {"tooltip": "The noise to use for the sampling."}),
+ "guiding_latents": (
+ "LATENT",
+ {
+ "tooltip": "The latents to use for guiding the sampling, typically with an IC-LoRA."
+ },
+ ),
+ },
+ "optional": {
+ "optional_cond_image": (
+ "IMAGE",
+ {
+ "tooltip": "The image to use for conditioning the sampling, if not provided, the sampling will be unconditioned (t2v setup). The image will be resized to the size of the first frame."
+ },
+ ),
+ "num_frames": (
+ "INT",
+ {
+ "default": -1,
+ "min": -1,
+ "max": 1000,
+ "step": 1,
+ "tooltip": "If -1, the number of frames will be based on the number of frames in the guiding_latents.",
+ },
+ ),
+ },
+ }
+
+ RETURN_TYPES = ("LATENT", "CONDITIONING", "CONDITIONING")
+ RETURN_NAMES = ("denoised_output", "positive", "negative")
+ FUNCTION = "sample"
+ CATEGORY = "sampling"
+
+ def sample(
+ self,
+ vae,
+ guider,
+ sampler,
+ sigmas,
+ noise,
+ guiding_latents,
+ optional_cond_image=None,
+ num_frames=0,
+ ):
+
+ try:
+ positive, negative = guider.raw_conds
+ except AttributeError:
+ raise ValueError(
+ "Guider does not have raw conds, cannot use it as a guider. "
+ "Please use STGGuiderAdvanced."
+ )
+
+ time_scale_factor, width_scale_factor, height_scale_factor = (
+ vae.downscale_index_formula
+ )
+
+ batch, channels, frames, height, width = guiding_latents["samples"].shape
+ if num_frames != -1:
+ frames = (num_frames - 1) // time_scale_factor + 1
+
+ new_latents = EmptyLTXVLatentVideo().generate(
+ width=width * width_scale_factor,
+ height=height * height_scale_factor,
+ length=(frames - 1) * time_scale_factor + 1,
+ batch_size=1,
+ )[0]
+
+ if optional_cond_image is not None:
+ optional_cond_image = (
+ comfy.utils.common_upscale(
+ optional_cond_image.movedim(-1, 1),
+ width * width_scale_factor,
+ height * height_scale_factor,
+ "bilinear",
+ crop="disabled",
+ )
+ .movedim(1, -1)
+ .clamp(0, 1)
+ )
+ (cond_image_latent,) = VAEEncode().encode(vae, optional_cond_image)
+ (
+ positive,
+ negative,
+ new_latents,
+ ) = LTXVAddLatentGuide().generate(
+ vae=vae,
+ positive=positive,
+ negative=negative,
+ latent=new_latents,
+ guiding_latent=cond_image_latent,
+ latent_idx=0,
+ strength=1.0,
+ )
+
+ if optional_cond_image is not None:
+ guiding_latents = LTXVSelectLatents().select_latents(
+ guiding_latents, 1, -1
+ )[0]
+
+ (
+ positive,
+ negative,
+ new_latents,
+ ) = LTXVAddLatentGuide().generate(
+ vae=vae,
+ positive=positive,
+ negative=negative,
+ latent=new_latents,
+ guiding_latent=guiding_latents,
+ latent_idx=0 if optional_cond_image is None else 1,
+ strength=1.0,
+ )
+
+ guider = copy.copy(guider)
+ guider.set_conds(positive, negative)
+
+ # Denoise the latent video
+ (_, denoised_output_latents) = SamplerCustomAdvanced().sample(
+ noise=noise,
+ guider=guider,
+ sampler=sampler,
+ sigmas=sigmas,
+ latent_image=new_latents,
+ )
+
+ # Clean up guides if image conditioning was used
+ positive, negative, denoised_output_latents = LTXVCropGuides().crop(
+ positive=positive,
+ negative=negative,
+ latent=denoised_output_latents,
+ )
+
+ return (denoised_output_latents, positive, negative)
+
+
+@comfy_node(description="Linear transition with overlap")
+class LinearOverlapLatentTransition:
+ @classmethod
+ def INPUT_TYPES(s):
+ return {
+ "required": {
+ "samples1": ("LATENT",),
+ "samples2": ("LATENT",),
+ "overlap": ("INT", {"default": 1, "min": 1, "max": 256}),
+ },
+ "optional": {
+ "axis": ("INT", {"default": 0}),
+ },
+ }
+
+ RETURN_TYPES = ("LATENT",)
+ FUNCTION = "process"
+
+ CATEGORY = "Lightricks/latent"
+
+ def get_subbatch(self, samples):
+ s = samples.copy()
+ samples = s["samples"]
+ return samples
+
+ def process(self, samples1, samples2, overlap, axis=0):
+ samples1 = self.get_subbatch(samples1)
+ samples2 = self.get_subbatch(samples2)
+
+ # Create transition coefficients
+ alpha = torch.linspace(1, 0, overlap + 2)[1:-1].to(samples1.device)
+
+ # Create shape for broadcasting based on the axis
+ shape = [1] * samples1.dim()
+ shape[axis] = alpha.size(0)
+ alpha = alpha.reshape(shape)
+
+ # Create slices for the overlap regions
+ slice_all = [slice(None)] * samples1.dim()
+ slice_overlap1 = slice_all.copy()
+ slice_overlap1[axis] = slice(-overlap, None)
+ slice_overlap2 = slice_all.copy()
+ slice_overlap2[axis] = slice(0, overlap)
+ slice_rest1 = slice_all.copy()
+ slice_rest1[axis] = slice(None, -overlap)
+ slice_rest2 = slice_all.copy()
+ slice_rest2[axis] = slice(overlap, None)
+
+ # Combine samples
+ parts = [
+ samples1[tuple(slice_rest1)],
+ alpha * samples1[tuple(slice_overlap1)]
+ + (1 - alpha) * samples2[tuple(slice_overlap2)],
+ samples2[tuple(slice_rest2)],
+ ]
+
+ combined_samples = torch.cat(parts, dim=axis)
+ combined_batch_index = torch.arange(0, combined_samples.shape[0])
+
+ return (
+ {
+ "samples": combined_samples,
+ "batch_index": combined_batch_index,
+ },
+ )
diff --git a/example_workflows/ic_lora/ic-lora.json b/example_workflows/ic_lora/ic-lora.json
new file mode 100644
index 0000000..142cc7f
--- /dev/null
+++ b/example_workflows/ic_lora/ic-lora.json
@@ -0,0 +1,6417 @@
+{
+ "id": "394ed254-7306-42a2-9ae6-aa880ce4456d",
+ "revision": 0,
+ "last_node_id": 2117,
+ "last_link_id": 5875,
+ "nodes": [
+ {
+ "id": 1949,
+ "type": "PrintSigmas",
+ "pos": [
+ 3625.89306640625,
+ 2595.56884765625
+ ],
+ "size": [
+ 210,
+ 26
+ ],
+ "flags": {},
+ "order": 34,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "sigmas",
+ "name": "sigmas",
+ "type": "SIGMAS",
+ "link": 5641
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "SIGMAS",
+ "name": "SIGMAS",
+ "type": "SIGMAS",
+ "links": [
+ 5607
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "PrintSigmas"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 1953,
+ "type": "FloatToSigmas",
+ "pos": [
+ 3395.893310546875,
+ 2695.56884765625
+ ],
+ "size": [
+ 216.59999084472656,
+ 26
+ ],
+ "flags": {},
+ "order": 22,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "float_list",
+ "name": "float_list",
+ "type": "FLOAT",
+ "link": 5567
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "SIGMAS",
+ "name": "SIGMAS",
+ "type": "SIGMAS",
+ "links": [
+ 5641
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "FloatToSigmas"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 73,
+ "type": "KSamplerSelect",
+ "pos": [
+ 3575.893310546875,
+ 2305.56884765625
+ ],
+ "size": [
+ 251.94110107421875,
+ 58
+ ],
+ "flags": {},
+ "order": 0,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "sampler_name",
+ "name": "sampler_name",
+ "type": "COMBO",
+ "widget": {
+ "name": "sampler_name"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "SAMPLER",
+ "name": "SAMPLER",
+ "type": "SAMPLER",
+ "links": [
+ 5588
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.28",
+ "Node name for S&R": "KSamplerSelect"
+ },
+ "widgets_values": [
+ "euler_ancestral"
+ ]
+ },
+ {
+ "id": 1241,
+ "type": "LTXVConditioning",
+ "pos": [
+ 2569.50537109375,
+ 2276.412109375
+ ],
+ "size": [
+ 328.21636962890625,
+ 78
+ ],
+ "flags": {},
+ "order": 35,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "positive",
+ "name": "positive",
+ "type": "CONDITIONING",
+ "link": 3364
+ },
+ {
+ "localized_name": "negative",
+ "name": "negative",
+ "type": "CONDITIONING",
+ "link": 3365
+ },
+ {
+ "localized_name": "frame_rate",
+ "name": "frame_rate",
+ "type": "FLOAT",
+ "widget": {
+ "name": "frame_rate"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "positive",
+ "name": "positive",
+ "type": "CONDITIONING",
+ "slot_index": 0,
+ "links": [
+ 5584,
+ 5715
+ ]
+ },
+ {
+ "localized_name": "negative",
+ "name": "negative",
+ "type": "CONDITIONING",
+ "slot_index": 1,
+ "links": [
+ 5585,
+ 5716
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.28",
+ "Node name for S&R": "LTXVConditioning"
+ },
+ "widgets_values": [
+ 24.000000000000004
+ ]
+ },
+ {
+ "id": 2023,
+ "type": "Reroute",
+ "pos": [
+ 3230,
+ 2200
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 48,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5716
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "CONDITIONING",
+ "links": [
+ 5742
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 1335,
+ "type": "VAEDecode",
+ "pos": [
+ 4524.71875,
+ 2618.7578125
+ ],
+ "size": [
+ 210,
+ 46
+ ],
+ "flags": {},
+ "order": 67,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "samples",
+ "name": "samples",
+ "type": "LATENT",
+ "link": 5593
+ },
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "type": "VAE",
+ "link": 5363
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 3578
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.29",
+ "Node name for S&R": "VAEDecode"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 1691,
+ "type": "LTXVLatentUpsampler",
+ "pos": [
+ 6083.716796875,
+ 2336.59912109375
+ ],
+ "size": [
+ 235.1999969482422,
+ 66
+ ],
+ "flags": {},
+ "order": 71,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "samples",
+ "name": "samples",
+ "type": "LATENT",
+ "link": 5839
+ },
+ {
+ "localized_name": "upscale_model",
+ "name": "upscale_model",
+ "type": "UPSCALE_MODEL",
+ "link": 5303
+ },
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "type": "VAE",
+ "link": 5820
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "LATENT",
+ "name": "LATENT",
+ "type": "LATENT",
+ "links": [
+ 5297
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "LTXVLatentUpsampler"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 1593,
+ "type": "LTXVAdainLatent",
+ "pos": [
+ 6431.66552734375,
+ 2396.767822265625
+ ],
+ "size": [
+ 210,
+ 78
+ ],
+ "flags": {},
+ "order": 72,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "latents",
+ "name": "latents",
+ "type": "LATENT",
+ "link": 5297
+ },
+ {
+ "localized_name": "reference",
+ "name": "reference",
+ "type": "LATENT",
+ "link": 5840
+ },
+ {
+ "localized_name": "factor",
+ "name": "factor",
+ "type": "FLOAT",
+ "widget": {
+ "name": "factor"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "LATENT",
+ "name": "LATENT",
+ "type": "LATENT",
+ "links": [
+ 5512
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "LTXVAdainLatent"
+ },
+ "widgets_values": [
+ 0.25
+ ]
+ },
+ {
+ "id": 1926,
+ "type": "KSamplerSelect",
+ "pos": [
+ 7654.01806640625,
+ 2623.49072265625
+ ],
+ "size": [
+ 251.94110107421875,
+ 58
+ ],
+ "flags": {},
+ "order": 1,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "sampler_name",
+ "name": "sampler_name",
+ "type": "COMBO",
+ "widget": {
+ "name": "sampler_name"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "SAMPLER",
+ "name": "SAMPLER",
+ "type": "SAMPLER",
+ "links": [
+ 5519
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.28",
+ "Node name for S&R": "KSamplerSelect"
+ },
+ "widgets_values": [
+ "euler_ancestral"
+ ]
+ },
+ {
+ "id": 2038,
+ "type": "Reroute",
+ "pos": [
+ 7180.00146484375,
+ 2230.974365234375
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 55,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5742
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "CONDITIONING",
+ "links": [
+ 5740
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2037,
+ "type": "Reroute",
+ "pos": [
+ 7177.74755859375,
+ 2188.748291015625
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 54,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5741
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "CONDITIONING",
+ "links": [
+ 5739
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2073,
+ "type": "FloatToSigmas",
+ "pos": [
+ 7737.2080078125,
+ 2834.16650390625
+ ],
+ "size": [
+ 216.59999084472656,
+ 26
+ ],
+ "flags": {},
+ "order": 21,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "float_list",
+ "name": "float_list",
+ "type": "FLOAT",
+ "link": 5782
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "SIGMAS",
+ "name": "SIGMAS",
+ "type": "SIGMAS",
+ "links": [
+ 5784
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "FloatToSigmas"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 2072,
+ "type": "StringToFloatList",
+ "pos": [
+ 7253.6123046875,
+ 2834.87841796875
+ ],
+ "size": [
+ 395.74224853515625,
+ 88
+ ],
+ "flags": {},
+ "order": 2,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "string",
+ "name": "string",
+ "type": "STRING",
+ "widget": {
+ "name": "string"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "FLOAT",
+ "name": "FLOAT",
+ "type": "FLOAT",
+ "links": [
+ 5782
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "StringToFloatList",
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "0addfc6101f7a834c7fb6e0a1b26529360ab5350"
+ },
+ "widgets_values": [
+ "0.80, 0.7250, 0.6, 0.4219, 0.0"
+ ],
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 1952,
+ "type": "StringToFloatList",
+ "pos": [
+ 3031.37158203125,
+ 2693.744384765625
+ ],
+ "size": [
+ 290,
+ 130
+ ],
+ "flags": {},
+ "order": 3,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "string",
+ "name": "string",
+ "type": "STRING",
+ "widget": {
+ "name": "string"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "FLOAT",
+ "name": "FLOAT",
+ "type": "FLOAT",
+ "links": [
+ 5567
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "StringToFloatList",
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "0addfc6101f7a834c7fb6e0a1b26529360ab5350"
+ },
+ "widgets_values": [
+ "1.0000, 0.9937, 0.9875, 0.9812, 0.9750, 0.9094, 0.7250, 0.4219, 0.0\n"
+ ],
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 1872,
+ "type": "LTXVTiledSampler",
+ "pos": [
+ 7993.52685546875,
+ 2284.314453125
+ ],
+ "size": [
+ 329.20001220703125,
+ 366
+ ],
+ "flags": {},
+ "order": 73,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "model",
+ "name": "model",
+ "type": "MODEL",
+ "link": 5817
+ },
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "type": "VAE",
+ "link": 5822
+ },
+ {
+ "localized_name": "noise",
+ "name": "noise",
+ "type": "NOISE",
+ "link": 5371
+ },
+ {
+ "localized_name": "sampler",
+ "name": "sampler",
+ "type": "SAMPLER",
+ "link": 5519
+ },
+ {
+ "localized_name": "sigmas",
+ "name": "sigmas",
+ "type": "SIGMAS",
+ "link": 5784
+ },
+ {
+ "localized_name": "guider",
+ "name": "guider",
+ "type": "GUIDER",
+ "link": 5374
+ },
+ {
+ "localized_name": "latents",
+ "name": "latents",
+ "type": "LATENT",
+ "link": 5512
+ },
+ {
+ "localized_name": "optional_cond_images",
+ "name": "optional_cond_images",
+ "shape": 7,
+ "type": "IMAGE",
+ "link": 5836
+ },
+ {
+ "localized_name": "horizontal_tiles",
+ "name": "horizontal_tiles",
+ "type": "INT",
+ "widget": {
+ "name": "horizontal_tiles"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "vertical_tiles",
+ "name": "vertical_tiles",
+ "type": "INT",
+ "widget": {
+ "name": "vertical_tiles"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "overlap",
+ "name": "overlap",
+ "type": "INT",
+ "widget": {
+ "name": "overlap"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "latents_cond_strength",
+ "name": "latents_cond_strength",
+ "type": "FLOAT",
+ "widget": {
+ "name": "latents_cond_strength"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "boost_latent_similarity",
+ "name": "boost_latent_similarity",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "boost_latent_similarity"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "crop",
+ "name": "crop",
+ "type": "COMBO",
+ "widget": {
+ "name": "crop"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "optional_cond_indices",
+ "name": "optional_cond_indices",
+ "shape": 7,
+ "type": "STRING",
+ "widget": {
+ "name": "optional_cond_indices"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "images_cond_strengths",
+ "name": "images_cond_strengths",
+ "shape": 7,
+ "type": "STRING",
+ "widget": {
+ "name": "images_cond_strengths"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "output",
+ "name": "output",
+ "type": "LATENT",
+ "links": []
+ },
+ {
+ "localized_name": "denoised_output",
+ "name": "denoised_output",
+ "type": "LATENT",
+ "links": [
+ 5416
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "LTXVTiledSampler"
+ },
+ "widgets_values": [
+ 1,
+ 1,
+ 3,
+ 0.15,
+ true,
+ "disabled",
+ "0",
+ "0.9"
+ ]
+ },
+ {
+ "id": 1598,
+ "type": "RandomNoise",
+ "pos": [
+ 7723.73046875,
+ 2304.90966796875
+ ],
+ "size": [
+ 210,
+ 82
+ ],
+ "flags": {},
+ "order": 4,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "noise_seed",
+ "name": "noise_seed",
+ "type": "INT",
+ "widget": {
+ "name": "noise_seed"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "NOISE",
+ "name": "NOISE",
+ "type": "NOISE",
+ "links": [
+ 5371
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.30",
+ "Node name for S&R": "RandomNoise"
+ },
+ "widgets_values": [
+ 1625,
+ "fixed"
+ ]
+ },
+ {
+ "id": 1921,
+ "type": "STGGuiderAdvanced",
+ "pos": [
+ 3176.751953125,
+ 2356.80322265625
+ ],
+ "size": [
+ 278.79998779296875,
+ 262
+ ],
+ "flags": {},
+ "order": 57,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "model",
+ "name": "model",
+ "type": "MODEL",
+ "link": 5844
+ },
+ {
+ "localized_name": "positive",
+ "name": "positive",
+ "type": "CONDITIONING",
+ "link": 5584
+ },
+ {
+ "localized_name": "negative",
+ "name": "negative",
+ "type": "CONDITIONING",
+ "link": 5585
+ },
+ {
+ "localized_name": "preset",
+ "name": "preset",
+ "shape": 7,
+ "type": "STG_ADVANCED_PRESET",
+ "link": 5613
+ },
+ {
+ "localized_name": "skip_steps_sigma_threshold",
+ "name": "skip_steps_sigma_threshold",
+ "type": "FLOAT",
+ "widget": {
+ "name": "skip_steps_sigma_threshold"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "cfg_star_rescale",
+ "name": "cfg_star_rescale",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "cfg_star_rescale"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "sigmas",
+ "name": "sigmas",
+ "type": "STRING",
+ "widget": {
+ "name": "sigmas"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "cfg_values",
+ "name": "cfg_values",
+ "type": "STRING",
+ "widget": {
+ "name": "cfg_values"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "stg_scale_values",
+ "name": "stg_scale_values",
+ "type": "STRING",
+ "widget": {
+ "name": "stg_scale_values"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "stg_rescale_values",
+ "name": "stg_rescale_values",
+ "type": "STRING",
+ "widget": {
+ "name": "stg_rescale_values"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "stg_layers_indices",
+ "name": "stg_layers_indices",
+ "type": "STRING",
+ "widget": {
+ "name": "stg_layers_indices"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "GUIDER",
+ "name": "GUIDER",
+ "type": "GUIDER",
+ "links": [
+ 5587
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "STGGuiderAdvanced"
+ },
+ "widgets_values": [
+ 0.9970000000000002,
+ true,
+ "1",
+ "1",
+ "0,0,0,0,0,0",
+ "1",
+ "[25]"
+ ]
+ },
+ {
+ "id": 1992,
+ "type": "Canny",
+ "pos": [
+ 1531.85498046875,
+ 3118.732666015625
+ ],
+ "size": [
+ 270,
+ 82
+ ],
+ "flags": {},
+ "order": 39,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "image",
+ "name": "image",
+ "type": "IMAGE",
+ "link": 5676
+ },
+ {
+ "localized_name": "low_threshold",
+ "name": "low_threshold",
+ "type": "FLOAT",
+ "widget": {
+ "name": "low_threshold"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "high_threshold",
+ "name": "high_threshold",
+ "type": "FLOAT",
+ "widget": {
+ "name": "high_threshold"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5679
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.41",
+ "Node name for S&R": "Canny"
+ },
+ "widgets_values": [
+ 0.4,
+ 0.8
+ ],
+ "color": "#2a363b",
+ "bgcolor": "#3f5159"
+ },
+ {
+ "id": 2096,
+ "type": "Reroute",
+ "pos": [
+ 3950,
+ 2050
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 45,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5829
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "VAE",
+ "links": [
+ 5830,
+ 5831
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 7,
+ "type": "CLIPTextEncode",
+ "pos": [
+ 2226.2451171875,
+ 2444.43359375
+ ],
+ "size": [
+ 324.2440490722656,
+ 138.9625701904297
+ ],
+ "flags": {},
+ "order": 24,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "clip",
+ "name": "clip",
+ "type": "CLIP",
+ "link": 5603
+ },
+ {
+ "localized_name": "text",
+ "name": "text",
+ "type": "STRING",
+ "widget": {
+ "name": "text"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "CONDITIONING",
+ "name": "CONDITIONING",
+ "type": "CONDITIONING",
+ "slot_index": 0,
+ "links": [
+ 3365
+ ]
+ }
+ ],
+ "title": "CLIP Text Encode (Negative Prompt)",
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.28",
+ "Node name for S&R": "CLIPTextEncode"
+ },
+ "widgets_values": [
+ "low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly"
+ ],
+ "color": "#322",
+ "bgcolor": "#533"
+ },
+ {
+ "id": 2097,
+ "type": "Note",
+ "pos": [
+ 2572.427490234375,
+ 2150.85498046875
+ ],
+ "size": [
+ 285.2653503417969,
+ 88
+ ],
+ "flags": {},
+ "order": 5,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [],
+ "properties": {},
+ "widgets_values": [
+ "you don't need an overly detailed prompt, but it's better than leaving it blank"
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 38,
+ "type": "CLIPLoader",
+ "pos": [
+ 1916.6739501953125,
+ 2303.91259765625
+ ],
+ "size": [
+ 245.33026123046875,
+ 106
+ ],
+ "flags": {},
+ "order": 6,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "clip_name",
+ "name": "clip_name",
+ "type": "COMBO",
+ "widget": {
+ "name": "clip_name"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "type",
+ "name": "type",
+ "type": "COMBO",
+ "widget": {
+ "name": "type"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "device",
+ "name": "device",
+ "shape": 7,
+ "type": "COMBO",
+ "widget": {
+ "name": "device"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "CLIP",
+ "name": "CLIP",
+ "type": "CLIP",
+ "slot_index": 0,
+ "links": [
+ 5602,
+ 5603
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.28",
+ "Node name for S&R": "CLIPLoader"
+ },
+ "widgets_values": [
+ "t5xxl_fp16.safetensors",
+ "ltxv",
+ "default"
+ ]
+ },
+ {
+ "id": 2098,
+ "type": "Reroute",
+ "pos": [
+ 1573.6387939453125,
+ 2007.331298828125
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 40,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5832
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "IMAGE",
+ "links": [
+ 5833
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2091,
+ "type": "Reroute",
+ "pos": [
+ 5967.08837890625,
+ 2053.210205078125
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 52,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5831
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "VAE",
+ "links": [
+ 5820,
+ 5821
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2092,
+ "type": "Reroute",
+ "pos": [
+ 7761.240234375,
+ 2056.9248046875
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 58,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5821
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "VAE",
+ "links": [
+ 5822,
+ 5823
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2093,
+ "type": "Reroute",
+ "pos": [
+ 8371.568359375,
+ 2059.887939453125
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 63,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5823
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "VAE",
+ "links": [
+ 5874
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2022,
+ "type": "Reroute",
+ "pos": [
+ 3230,
+ 2160
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 47,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5715
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "CONDITIONING",
+ "links": [
+ 5741
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 1507,
+ "type": "RandomNoise",
+ "pos": [
+ 3585.893310546875,
+ 2415.56884765625
+ ],
+ "size": [
+ 239.2462158203125,
+ 82
+ ],
+ "flags": {},
+ "order": 7,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "noise_seed",
+ "name": "noise_seed",
+ "type": "INT",
+ "widget": {
+ "name": "noise_seed"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "NOISE",
+ "name": "NOISE",
+ "type": "NOISE",
+ "slot_index": 0,
+ "links": [
+ 5590
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.28",
+ "Node name for S&R": "RandomNoise"
+ },
+ "widgets_values": [
+ 2816,
+ "fixed"
+ ]
+ },
+ {
+ "id": 1961,
+ "type": "LTXVInContextSampler",
+ "pos": [
+ 4025.8935546875,
+ 2335.56884765625
+ ],
+ "size": [
+ 350,
+ 178
+ ],
+ "flags": {},
+ "order": 64,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "type": "VAE",
+ "link": 5830
+ },
+ {
+ "localized_name": "guider",
+ "name": "guider",
+ "type": "GUIDER",
+ "link": 5587
+ },
+ {
+ "localized_name": "sampler",
+ "name": "sampler",
+ "type": "SAMPLER",
+ "link": 5588
+ },
+ {
+ "localized_name": "sigmas",
+ "name": "sigmas",
+ "type": "SIGMAS",
+ "link": 5607
+ },
+ {
+ "localized_name": "noise",
+ "name": "noise",
+ "type": "NOISE",
+ "link": 5590
+ },
+ {
+ "localized_name": "guiding_latents",
+ "name": "guiding_latents",
+ "type": "LATENT",
+ "link": 5591
+ },
+ {
+ "localized_name": "optional_cond_image",
+ "name": "optional_cond_image",
+ "shape": 7,
+ "type": "IMAGE",
+ "link": 5805
+ },
+ {
+ "localized_name": "num_frames",
+ "name": "num_frames",
+ "shape": 7,
+ "type": "INT",
+ "widget": {
+ "name": "num_frames"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "denoised_output",
+ "name": "denoised_output",
+ "type": "LATENT",
+ "links": [
+ 5593,
+ 5837
+ ]
+ },
+ {
+ "localized_name": "positive",
+ "name": "positive",
+ "type": "CONDITIONING",
+ "links": null
+ },
+ {
+ "localized_name": "negative",
+ "name": "negative",
+ "type": "CONDITIONING",
+ "links": null
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "LTXVInContextSampler"
+ },
+ "widgets_values": [
+ -1
+ ]
+ },
+ {
+ "id": 2102,
+ "type": "Reroute",
+ "pos": [
+ 5964.9345703125,
+ 2899.48828125
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 70,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5838
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "LATENT",
+ "links": [
+ 5839,
+ 5840
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2101,
+ "type": "Reroute",
+ "pos": [
+ 4516.3046875,
+ 2895.996337890625
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 68,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5837
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "LATENT",
+ "links": [
+ 5838
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 1336,
+ "type": "VHS_VideoCombine",
+ "pos": [
+ 4833.53515625,
+ 2294.52490234375
+ ],
+ "size": [
+ 430.260498046875,
+ 582.4345703125
+ ],
+ "flags": {},
+ "order": 69,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "images",
+ "name": "images",
+ "type": "IMAGE",
+ "link": 3578
+ },
+ {
+ "localized_name": "audio",
+ "name": "audio",
+ "shape": 7,
+ "type": "AUDIO",
+ "link": null
+ },
+ {
+ "localized_name": "meta_batch",
+ "name": "meta_batch",
+ "shape": 7,
+ "type": "VHS_BatchManager",
+ "link": null
+ },
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "shape": 7,
+ "type": "VAE",
+ "link": null
+ },
+ {
+ "localized_name": "frame_rate",
+ "name": "frame_rate",
+ "type": "FLOAT",
+ "widget": {
+ "name": "frame_rate"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "loop_count",
+ "name": "loop_count",
+ "type": "INT",
+ "widget": {
+ "name": "loop_count"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "filename_prefix",
+ "name": "filename_prefix",
+ "type": "STRING",
+ "widget": {
+ "name": "filename_prefix"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "format",
+ "name": "format",
+ "type": "COMBO",
+ "widget": {
+ "name": "format"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "pingpong",
+ "name": "pingpong",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "pingpong"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "save_output",
+ "name": "save_output",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "save_output"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "Filenames",
+ "name": "Filenames",
+ "type": "VHS_FILENAMES",
+ "links": null
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "VHS_VideoCombine"
+ },
+ "widgets_values": {
+ "frame_rate": 24,
+ "loop_count": 0,
+ "filename_prefix": "ltxv-base",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 19,
+ "save_metadata": true,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": false,
+ "videopreview": {
+ "hidden": false,
+ "paused": false,
+ "params": {
+ "filename": "ltxv-base_00003.mp4",
+ "subfolder": "",
+ "type": "temp",
+ "format": "video/h264-mp4",
+ "frame_rate": 24,
+ "workflow": "ltxv-base_00003.png",
+ "fullpath": "/home/tavi/tii_serving/src/comfyui/temp/ltxv-base_00003.mp4"
+ }
+ }
+ }
+ },
+ {
+ "id": 1870,
+ "type": "Set VAE Decoder Noise",
+ "pos": [
+ 4128.86376953125,
+ 2636.841796875
+ ],
+ "size": [
+ 235.1999969482422,
+ 130
+ ],
+ "flags": {},
+ "order": 53,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "type": "VAE",
+ "link": 5828
+ },
+ {
+ "localized_name": "timestep",
+ "name": "timestep",
+ "type": "FLOAT",
+ "widget": {
+ "name": "timestep"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "scale",
+ "name": "scale",
+ "type": "FLOAT",
+ "widget": {
+ "name": "scale"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "seed",
+ "name": "seed",
+ "type": "INT",
+ "widget": {
+ "name": "seed"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "VAE",
+ "name": "VAE",
+ "type": "VAE",
+ "links": [
+ 5363
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "Set VAE Decoder Noise"
+ },
+ "widgets_values": [
+ 0.05000000000000001,
+ 0.025000000000000005,
+ 42,
+ "fixed"
+ ]
+ },
+ {
+ "id": 1959,
+ "type": "VAEEncode",
+ "pos": [
+ 3537.1240234375,
+ 2844.8173828125
+ ],
+ "size": [
+ 210,
+ 46
+ ],
+ "flags": {
+ "collapsed": false
+ },
+ "order": 60,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "pixels",
+ "name": "pixels",
+ "type": "IMAGE",
+ "link": 5857
+ },
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "type": "VAE",
+ "link": 5827
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "LATENT",
+ "name": "LATENT",
+ "type": "LATENT",
+ "links": [
+ 5591
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.30",
+ "Node name for S&R": "VAEEncode"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 2094,
+ "type": "Reroute",
+ "pos": [
+ 1690.54443359375,
+ 2476.849365234375
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 33,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5825
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "VAE",
+ "links": [
+ 5826
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2090,
+ "type": "Reroute",
+ "pos": [
+ 1239.1324462890625,
+ 2039.638671875
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 32,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5818
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "VAE",
+ "links": [
+ 5829
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2089,
+ "type": "Reroute",
+ "pos": [
+ 7213.5625,
+ 2086.96240234375
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 44,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5815
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "MODEL",
+ "links": [
+ 5816,
+ 5817
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2088,
+ "type": "Reroute",
+ "pos": [
+ 1240.3284912109375,
+ 2068.718994140625
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 31,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5814
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "MODEL",
+ "links": [
+ 5815
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 1979,
+ "type": "DepthCrafter",
+ "pos": [
+ 1521.85498046875,
+ 2598.732666015625
+ ],
+ "size": [
+ 294.4578857421875,
+ 187.34010314941406
+ ],
+ "flags": {},
+ "order": 37,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "depthcrafter_model",
+ "name": "depthcrafter_model",
+ "type": "DEPTHCRAFTER_MODEL",
+ "link": 5651
+ },
+ {
+ "localized_name": "images",
+ "name": "images",
+ "type": "IMAGE",
+ "link": 5657
+ },
+ {
+ "localized_name": "max_res",
+ "name": "max_res",
+ "type": "INT",
+ "widget": {
+ "name": "max_res"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "num_inference_steps",
+ "name": "num_inference_steps",
+ "type": "INT",
+ "widget": {
+ "name": "num_inference_steps"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "guidance_scale",
+ "name": "guidance_scale",
+ "type": "FLOAT",
+ "widget": {
+ "name": "guidance_scale"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "window_size",
+ "name": "window_size",
+ "type": "INT",
+ "widget": {
+ "name": "window_size"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "overlap",
+ "name": "overlap",
+ "type": "INT",
+ "widget": {
+ "name": "overlap"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "depth_maps",
+ "name": "depth_maps",
+ "type": "IMAGE",
+ "links": [
+ 5665
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "DepthCrafter"
+ },
+ "widgets_values": [
+ 512,
+ 5,
+ 1,
+ 110,
+ 25
+ ],
+ "color": "#2a363b",
+ "bgcolor": "#3f5159"
+ },
+ {
+ "id": 1980,
+ "type": "DownloadAndLoadDepthCrafterModel",
+ "pos": [
+ 1059.019287109375,
+ 2626.702880859375
+ ],
+ "size": [
+ 336.4917907714844,
+ 82
+ ],
+ "flags": {
+ "collapsed": true
+ },
+ "order": 8,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "enable_model_cpu_offload",
+ "name": "enable_model_cpu_offload",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "enable_model_cpu_offload"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "enable_sequential_cpu_offload",
+ "name": "enable_sequential_cpu_offload",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "enable_sequential_cpu_offload"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "depthcrafter_model",
+ "name": "depthcrafter_model",
+ "type": "DEPTHCRAFTER_MODEL",
+ "links": [
+ 5651
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "DownloadAndLoadDepthCrafterModel"
+ },
+ "widgets_values": [
+ true,
+ false
+ ]
+ },
+ {
+ "id": 1983,
+ "type": "DWPreprocessor",
+ "pos": [
+ 1511.85498046875,
+ 2838.732666015625
+ ],
+ "size": [
+ 294.72265625,
+ 222
+ ],
+ "flags": {},
+ "order": 38,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "image",
+ "name": "image",
+ "type": "IMAGE",
+ "link": 5659
+ },
+ {
+ "localized_name": "detect_hand",
+ "name": "detect_hand",
+ "shape": 7,
+ "type": "COMBO",
+ "widget": {
+ "name": "detect_hand"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "detect_body",
+ "name": "detect_body",
+ "shape": 7,
+ "type": "COMBO",
+ "widget": {
+ "name": "detect_body"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "detect_face",
+ "name": "detect_face",
+ "shape": 7,
+ "type": "COMBO",
+ "widget": {
+ "name": "detect_face"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "resolution",
+ "name": "resolution",
+ "shape": 7,
+ "type": "INT",
+ "widget": {
+ "name": "resolution"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "bbox_detector",
+ "name": "bbox_detector",
+ "shape": 7,
+ "type": "COMBO",
+ "widget": {
+ "name": "bbox_detector"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "pose_estimator",
+ "name": "pose_estimator",
+ "shape": 7,
+ "type": "COMBO",
+ "widget": {
+ "name": "pose_estimator"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "scale_stick_for_xinsr_cn",
+ "name": "scale_stick_for_xinsr_cn",
+ "shape": 7,
+ "type": "COMBO",
+ "widget": {
+ "name": "scale_stick_for_xinsr_cn"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5666
+ ]
+ },
+ {
+ "localized_name": "POSE_KEYPOINT",
+ "name": "POSE_KEYPOINT",
+ "type": "POSE_KEYPOINT",
+ "links": null
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "DWPreprocessor"
+ },
+ "widgets_values": [
+ "enable",
+ "enable",
+ "enable",
+ 512,
+ "yolox_l.onnx",
+ "dw-ll_ucoco_384_bs5.torchscript.pt",
+ "disable"
+ ],
+ "color": "#2a363b",
+ "bgcolor": "#3f5159"
+ },
+ {
+ "id": 2106,
+ "type": "Note",
+ "pos": [
+ 2581.77587890625,
+ 3899.79296875
+ ],
+ "size": [
+ 305.1477355957031,
+ 150.49525451660156
+ ],
+ "flags": {},
+ "order": 9,
+ "mode": 4,
+ "inputs": [],
+ "outputs": [],
+ "properties": {},
+ "widgets_values": [
+ "OPTIONAL - style/character lora\nDisabled by default."
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 1950,
+ "type": "VHS_VideoCombine",
+ "pos": [
+ 10229.26953125,
+ 2223.7861328125
+ ],
+ "size": [
+ 719.4806518554688,
+ 1538.5068359375
+ ],
+ "flags": {},
+ "order": 77,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "images",
+ "name": "images",
+ "type": "IMAGE",
+ "link": 5620
+ },
+ {
+ "localized_name": "audio",
+ "name": "audio",
+ "shape": 7,
+ "type": "AUDIO",
+ "link": null
+ },
+ {
+ "localized_name": "meta_batch",
+ "name": "meta_batch",
+ "shape": 7,
+ "type": "VHS_BatchManager",
+ "link": null
+ },
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "shape": 7,
+ "type": "VAE",
+ "link": null
+ },
+ {
+ "localized_name": "frame_rate",
+ "name": "frame_rate",
+ "type": "FLOAT",
+ "widget": {
+ "name": "frame_rate"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "loop_count",
+ "name": "loop_count",
+ "type": "INT",
+ "widget": {
+ "name": "loop_count"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "filename_prefix",
+ "name": "filename_prefix",
+ "type": "STRING",
+ "widget": {
+ "name": "filename_prefix"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "format",
+ "name": "format",
+ "type": "COMBO",
+ "widget": {
+ "name": "format"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "pingpong",
+ "name": "pingpong",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "pingpong"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "save_output",
+ "name": "save_output",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "save_output"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "Filenames",
+ "name": "Filenames",
+ "type": "VHS_FILENAMES",
+ "links": null
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "VHS_VideoCombine"
+ },
+ "widgets_values": {
+ "frame_rate": 24,
+ "loop_count": 0,
+ "filename_prefix": "ltxv-ic-lora-stack",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 19,
+ "save_metadata": true,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true,
+ "videopreview": {
+ "hidden": false,
+ "paused": false,
+ "params": {
+ "filename": "ltxv-ic-lora-stack_00281.mp4",
+ "subfolder": "",
+ "type": "output",
+ "format": "video/h264-mp4",
+ "frame_rate": 24,
+ "workflow": "ltxv-ic-lora-stack_00281.png",
+ "fullpath": "/home/tavi/tii_serving/src/comfyui/output/ltxv-ic-lora-stack_00281.mp4"
+ }
+ }
+ }
+ },
+ {
+ "id": 2087,
+ "type": "Note",
+ "pos": [
+ 3733.60546875,
+ 3421.385009765625
+ ],
+ "size": [
+ 305.1477355957031,
+ 150.49525451660156
+ ],
+ "flags": {},
+ "order": 10,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [],
+ "properties": {},
+ "widgets_values": [
+ "It's very important that your reference image is aligned as perfectly as possible with the first frame of your input video, otherwise you might get artifacts and weird motion."
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 2083,
+ "type": "Note",
+ "pos": [
+ 3733.57177734375,
+ 3286.08154296875
+ ],
+ "size": [
+ 301.8587951660156,
+ 88.58767700195312
+ ],
+ "flags": {},
+ "order": 11,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [],
+ "properties": {},
+ "widgets_values": [
+ "If you want to generate in text-to-video mode, simply bypass the conditioning reference image"
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 2095,
+ "type": "Reroute",
+ "pos": [
+ 3152.313232421875,
+ 2828.526123046875
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 46,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5826
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "VAE",
+ "links": [
+ 5827,
+ 5828
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2104,
+ "type": "LoraLoaderModelOnly",
+ "pos": [
+ 2571.77587890625,
+ 3769.79296875
+ ],
+ "size": [
+ 315,
+ 82
+ ],
+ "flags": {},
+ "order": 51,
+ "mode": 4,
+ "inputs": [
+ {
+ "localized_name": "model",
+ "name": "model",
+ "type": "MODEL",
+ "link": 5845
+ },
+ {
+ "localized_name": "lora_name",
+ "name": "lora_name",
+ "type": "COMBO",
+ "widget": {
+ "name": "lora_name"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "strength_model",
+ "name": "strength_model",
+ "type": "FLOAT",
+ "widget": {
+ "name": "strength_model"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "MODEL",
+ "name": "MODEL",
+ "type": "MODEL",
+ "links": [
+ 5844
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.30",
+ "Node name for S&R": "LoraLoaderModelOnly"
+ },
+ "widgets_values": [
+ "70s-000015.safetensors",
+ 1.0000000000000002
+ ],
+ "color": "#323",
+ "bgcolor": "#535"
+ },
+ {
+ "id": 1960,
+ "type": "LoadImage",
+ "pos": [
+ 2862.374755859375,
+ 3124.90380859375
+ ],
+ "size": [
+ 815.233642578125,
+ 525.4606323242188
+ ],
+ "flags": {},
+ "order": 12,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "image",
+ "name": "image",
+ "type": "COMBO",
+ "widget": {
+ "name": "image"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "choose file to upload",
+ "name": "upload",
+ "type": "IMAGEUPLOAD",
+ "widget": {
+ "name": "upload"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5805,
+ 5835
+ ]
+ },
+ {
+ "localized_name": "MASK",
+ "name": "MASK",
+ "type": "MASK",
+ "links": null
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.30",
+ "Node name for S&R": "LoadImage"
+ },
+ "widgets_values": [
+ "ComfyUI_temp_tzqoq_00002_.png",
+ "image"
+ ]
+ },
+ {
+ "id": 6,
+ "type": "CLIPTextEncode",
+ "pos": [
+ 2235.0654296875,
+ 2177.4794921875
+ ],
+ "size": [
+ 307.2346496582031,
+ 204.2556610107422
+ ],
+ "flags": {},
+ "order": 23,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "clip",
+ "name": "clip",
+ "type": "CLIP",
+ "link": 5602
+ },
+ {
+ "localized_name": "text",
+ "name": "text",
+ "type": "STRING",
+ "widget": {
+ "name": "text"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "CONDITIONING",
+ "name": "CONDITIONING",
+ "type": "CONDITIONING",
+ "slot_index": 0,
+ "links": [
+ 3364
+ ]
+ }
+ ],
+ "title": "CLIP Text Encode (Positive Prompt)",
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.28",
+ "Node name for S&R": "CLIPTextEncode"
+ },
+ "widgets_values": [
+ "robot walking in the desert"
+ ],
+ "color": "#232",
+ "bgcolor": "#353"
+ },
+ {
+ "id": 1986,
+ "type": "LoraLoaderModelOnly",
+ "pos": [
+ 1520.5445556640625,
+ 3406.849365234375
+ ],
+ "size": [
+ 315,
+ 82
+ ],
+ "flags": {},
+ "order": 29,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "model",
+ "name": "model",
+ "type": "MODEL",
+ "link": 5668
+ },
+ {
+ "localized_name": "lora_name",
+ "name": "lora_name",
+ "type": "COMBO",
+ "widget": {
+ "name": "lora_name"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "strength_model",
+ "name": "strength_model",
+ "type": "FLOAT",
+ "widget": {
+ "name": "strength_model"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "MODEL",
+ "name": "MODEL",
+ "type": "MODEL",
+ "links": [
+ 5670
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.30",
+ "Node name for S&R": "LoraLoaderModelOnly"
+ },
+ "widgets_values": [
+ "ltxv-097-ic-lora-pose-control.safetensors",
+ 1.0000000000000002
+ ],
+ "color": "#323",
+ "bgcolor": "#535"
+ },
+ {
+ "id": 1993,
+ "type": "LoraLoaderModelOnly",
+ "pos": [
+ 1520.5445556640625,
+ 3536.849365234375
+ ],
+ "size": [
+ 315,
+ 82
+ ],
+ "flags": {},
+ "order": 30,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "model",
+ "name": "model",
+ "type": "MODEL",
+ "link": 5677
+ },
+ {
+ "localized_name": "lora_name",
+ "name": "lora_name",
+ "type": "COMBO",
+ "widget": {
+ "name": "lora_name"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "strength_model",
+ "name": "strength_model",
+ "type": "FLOAT",
+ "widget": {
+ "name": "strength_model"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "MODEL",
+ "name": "MODEL",
+ "type": "MODEL",
+ "links": [
+ 5678
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.30",
+ "Node name for S&R": "LoraLoaderModelOnly"
+ },
+ "widgets_values": [
+ "ltxv-097-ic-lora-canny-control.safetensors",
+ 1.0000000000000002
+ ],
+ "color": "#323",
+ "bgcolor": "#535"
+ },
+ {
+ "id": 2077,
+ "type": "VHS_SelectImages",
+ "pos": [
+ 313.00341796875,
+ 3254.195068359375
+ ],
+ "size": [
+ 212.599609375,
+ 106
+ ],
+ "flags": {},
+ "order": 26,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "image",
+ "name": "image",
+ "type": "IMAGE",
+ "link": 5807
+ },
+ {
+ "localized_name": "indexes",
+ "name": "indexes",
+ "type": "STRING",
+ "widget": {
+ "name": "indexes"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "err_if_missing",
+ "name": "err_if_missing",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "err_if_missing"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "err_if_empty",
+ "name": "err_if_empty",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "err_if_empty"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5813
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "VHS_SelectImages"
+ },
+ "widgets_values": {
+ "indexes": "0",
+ "err_if_missing": true,
+ "err_if_empty": true
+ }
+ },
+ {
+ "id": 2085,
+ "type": "PreviewImage",
+ "pos": [
+ 566.2039184570312,
+ 3264.89013671875
+ ],
+ "size": [
+ 140,
+ 246
+ ],
+ "flags": {},
+ "order": 36,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "images",
+ "name": "images",
+ "type": "IMAGE",
+ "link": 5813
+ }
+ ],
+ "outputs": [],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.43",
+ "Node name for S&R": "PreviewImage"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 2081,
+ "type": "Note",
+ "pos": [
+ 333.2677917480469,
+ 2991.11669921875
+ ],
+ "size": [
+ 323.5744323730469,
+ 156.41195678710938
+ ],
+ "flags": {},
+ "order": 13,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [],
+ "properties": {},
+ "widgets_values": [
+ "Recommended dimensions:\n768x512 - good starting point for 1st pass before upscale\n\n906x512 - for a closer 16:9 aspect ratio\n\n1216x704 - For High VRAM machines, you might not need to do the 2nd upscale pass,\n\nnumber of frames should be a multiple of 8 plus one, eg. 9, 17, 25, etc."
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 2079,
+ "type": "VHS_LoadVideo",
+ "pos": [
+ -57.39023971557617,
+ 3101.975830078125
+ ],
+ "size": [
+ 313.7864074707031,
+ 489.1610107421875
+ ],
+ "flags": {},
+ "order": 14,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "meta_batch",
+ "name": "meta_batch",
+ "shape": 7,
+ "type": "VHS_BatchManager",
+ "link": null
+ },
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "shape": 7,
+ "type": "VAE",
+ "link": null
+ },
+ {
+ "localized_name": "video",
+ "name": "video",
+ "type": "COMBO",
+ "widget": {
+ "name": "video"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "force_rate",
+ "name": "force_rate",
+ "type": "FLOAT",
+ "widget": {
+ "name": "force_rate"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "custom_width",
+ "name": "custom_width",
+ "type": "INT",
+ "widget": {
+ "name": "custom_width"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "custom_height",
+ "name": "custom_height",
+ "type": "INT",
+ "widget": {
+ "name": "custom_height"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "frame_load_cap",
+ "name": "frame_load_cap",
+ "type": "INT",
+ "widget": {
+ "name": "frame_load_cap"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "skip_first_frames",
+ "name": "skip_first_frames",
+ "type": "INT",
+ "widget": {
+ "name": "skip_first_frames"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "select_every_nth",
+ "name": "select_every_nth",
+ "type": "INT",
+ "widget": {
+ "name": "select_every_nth"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "format",
+ "name": "format",
+ "shape": 7,
+ "type": "COMBO",
+ "widget": {
+ "name": "format"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5807,
+ 5809
+ ]
+ },
+ {
+ "localized_name": "frame_count",
+ "name": "frame_count",
+ "type": "INT",
+ "links": null
+ },
+ {
+ "localized_name": "audio",
+ "name": "audio",
+ "type": "AUDIO",
+ "links": null
+ },
+ {
+ "localized_name": "video_info",
+ "name": "video_info",
+ "type": "VHS_VIDEOINFO",
+ "links": null
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "VHS_LoadVideo"
+ },
+ "widgets_values": {
+ "video": "man_walking.mp4",
+ "force_rate": 0,
+ "custom_width": 0,
+ "custom_height": 0,
+ "frame_load_cap": 121,
+ "skip_first_frames": 0,
+ "select_every_nth": 1,
+ "format": "LTXV",
+ "choose video to upload": "image",
+ "videopreview": {
+ "hidden": false,
+ "paused": true,
+ "params": {
+ "frame_load_cap": 121,
+ "skip_first_frames": 0,
+ "force_rate": 0,
+ "filename": "man_walking.mp4",
+ "type": "input",
+ "format": "video/mp4",
+ "select_every_nth": 1
+ }
+ }
+ }
+ },
+ {
+ "id": 1988,
+ "type": "ImpactSwitch",
+ "pos": [
+ 2157.0673828125,
+ 3424.705078125
+ ],
+ "size": [
+ 270,
+ 162
+ ],
+ "flags": {},
+ "order": 43,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "input1",
+ "name": "input1",
+ "shape": 7,
+ "type": "*",
+ "link": 5669
+ },
+ {
+ "localized_name": "select",
+ "name": "select",
+ "type": "INT",
+ "widget": {
+ "name": "select"
+ },
+ "link": 5811
+ },
+ {
+ "localized_name": "sel_mode",
+ "name": "sel_mode",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "sel_mode"
+ },
+ "link": null
+ },
+ {
+ "name": "input2",
+ "type": "MODEL",
+ "link": 5670
+ },
+ {
+ "name": "input3",
+ "type": "MODEL",
+ "link": 5678
+ },
+ {
+ "name": "input4",
+ "type": "MODEL",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "label": "MODEL",
+ "localized_name": "selected_value",
+ "name": "selected_value",
+ "type": "*",
+ "links": [
+ 5845
+ ]
+ },
+ {
+ "localized_name": "selected_label",
+ "name": "selected_label",
+ "type": "STRING",
+ "links": null
+ },
+ {
+ "localized_name": "selected_index",
+ "name": "selected_index",
+ "type": "INT",
+ "links": null
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "ImpactSwitch"
+ },
+ "widgets_values": [
+ 2,
+ true
+ ],
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 2082,
+ "type": "Note",
+ "pos": [
+ 2166.338623046875,
+ 3241.407470703125
+ ],
+ "size": [
+ 269.1498107910156,
+ 127.3357162475586
+ ],
+ "flags": {},
+ "order": 15,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [],
+ "properties": {},
+ "widgets_values": [
+ "for 'depth' switch to '1'\nfor 'pose' switch to '2'\nfor 'canny' switch to '3'\n\nFor human subjects I recommend Pose.\nFor objects/general stuff try Depth\nFor precise edge detection try Canny."
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 1987,
+ "type": "ImpactSwitch",
+ "pos": [
+ 2163.046875,
+ 3056.701904296875
+ ],
+ "size": [
+ 270,
+ 142
+ ],
+ "flags": {},
+ "order": 49,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "input1",
+ "name": "input1",
+ "shape": 7,
+ "type": "*",
+ "link": 5665
+ },
+ {
+ "localized_name": "select",
+ "name": "select",
+ "type": "INT",
+ "widget": {
+ "name": "select"
+ },
+ "link": 5810
+ },
+ {
+ "localized_name": "sel_mode",
+ "name": "sel_mode",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "sel_mode"
+ },
+ "link": null
+ },
+ {
+ "name": "input2",
+ "type": "IMAGE",
+ "link": 5666
+ },
+ {
+ "name": "input3",
+ "type": "IMAGE",
+ "link": 5679
+ },
+ {
+ "name": "input4",
+ "type": "IMAGE",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "label": "IMAGE",
+ "localized_name": "selected_value",
+ "name": "selected_value",
+ "type": "*",
+ "links": [
+ 5860
+ ]
+ },
+ {
+ "localized_name": "selected_label",
+ "name": "selected_label",
+ "type": "STRING",
+ "links": null
+ },
+ {
+ "localized_name": "selected_index",
+ "name": "selected_index",
+ "type": "INT",
+ "links": null
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "ImpactSwitch"
+ },
+ "widgets_values": [
+ 2,
+ false
+ ],
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 2113,
+ "type": "Reroute",
+ "pos": [
+ 2335.67529296875,
+ 2778.804931640625
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 41,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "widget": {
+ "name": "value"
+ },
+ "link": 5863
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "INT",
+ "links": [
+ 5866
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2114,
+ "type": "Reroute",
+ "pos": [
+ 2308.177001953125,
+ 2816.96142578125
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 42,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "widget": {
+ "name": "value"
+ },
+ "link": 5864
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "INT",
+ "links": [
+ 5865
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2100,
+ "type": "Reroute",
+ "pos": [
+ 7843.318359375,
+ 3142.584716796875
+ ],
+ "size": [
+ 75,
+ 26
+ ],
+ "flags": {},
+ "order": 25,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5835
+ }
+ ],
+ "outputs": [
+ {
+ "name": "",
+ "type": "IMAGE",
+ "links": [
+ 5836
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": false,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 1964,
+ "type": "LoraLoaderModelOnly",
+ "pos": [
+ 1520.5445556640625,
+ 3266.849365234375
+ ],
+ "size": [
+ 315,
+ 82
+ ],
+ "flags": {},
+ "order": 28,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "model",
+ "name": "model",
+ "type": "MODEL",
+ "link": 5640
+ },
+ {
+ "localized_name": "lora_name",
+ "name": "lora_name",
+ "type": "COMBO",
+ "widget": {
+ "name": "lora_name"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "strength_model",
+ "name": "strength_model",
+ "type": "FLOAT",
+ "widget": {
+ "name": "strength_model"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "MODEL",
+ "name": "MODEL",
+ "type": "MODEL",
+ "links": [
+ 5669
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.30",
+ "Node name for S&R": "LoraLoaderModelOnly"
+ },
+ "widgets_values": [
+ "ltxv-097-ic-lora-depth-control.safetensors",
+ 1.0000000000000002
+ ],
+ "color": "#323",
+ "bgcolor": "#535"
+ },
+ {
+ "id": 1896,
+ "type": "CheckpointLoaderSimple",
+ "pos": [
+ 877.5424194335938,
+ 2230.365478515625
+ ],
+ "size": [
+ 315,
+ 98
+ ],
+ "flags": {},
+ "order": 16,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "ckpt_name",
+ "name": "ckpt_name",
+ "type": "COMBO",
+ "widget": {
+ "name": "ckpt_name"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "MODEL",
+ "name": "MODEL",
+ "type": "MODEL",
+ "slot_index": 0,
+ "links": [
+ 5640,
+ 5668,
+ 5677,
+ 5814
+ ]
+ },
+ {
+ "localized_name": "CLIP",
+ "name": "CLIP",
+ "type": "CLIP",
+ "links": null
+ },
+ {
+ "localized_name": "VAE",
+ "name": "VAE",
+ "type": "VAE",
+ "slot_index": 2,
+ "links": [
+ 5818,
+ 5825
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.28",
+ "Node name for S&R": "CheckpointLoaderSimple"
+ },
+ "widgets_values": [
+ "ltxv-13b-0.9.7-distilled.safetensors"
+ ],
+ "color": "#322",
+ "bgcolor": "#533"
+ },
+ {
+ "id": 1963,
+ "type": "ImageResize+",
+ "pos": [
+ 333.0874938964844,
+ 2725.132080078125
+ ],
+ "size": [
+ 315,
+ 218
+ ],
+ "flags": {},
+ "order": 27,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "image",
+ "name": "image",
+ "type": "IMAGE",
+ "link": 5809
+ },
+ {
+ "localized_name": "width",
+ "name": "width",
+ "type": "INT",
+ "widget": {
+ "name": "width"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "height",
+ "name": "height",
+ "type": "INT",
+ "widget": {
+ "name": "height"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "interpolation",
+ "name": "interpolation",
+ "type": "COMBO",
+ "widget": {
+ "name": "interpolation"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "method",
+ "name": "method",
+ "type": "COMBO",
+ "widget": {
+ "name": "method"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "condition",
+ "name": "condition",
+ "type": "COMBO",
+ "widget": {
+ "name": "condition"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "multiple_of",
+ "name": "multiple_of",
+ "type": "INT",
+ "widget": {
+ "name": "multiple_of"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5657,
+ 5659,
+ 5676,
+ 5832
+ ]
+ },
+ {
+ "localized_name": "width",
+ "name": "width",
+ "type": "INT",
+ "links": [
+ 5863
+ ]
+ },
+ {
+ "localized_name": "height",
+ "name": "height",
+ "type": "INT",
+ "links": [
+ 5864
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "ImageResize+",
+ "cnr_id": "comfyui_essentials",
+ "ver": "1.1.0"
+ },
+ "widgets_values": [
+ 906,
+ 512,
+ "bilinear",
+ "fill / crop",
+ "always",
+ 0
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 1871,
+ "type": "STGGuiderAdvanced",
+ "pos": [
+ 7369.78955078125,
+ 2388.995361328125
+ ],
+ "size": [
+ 278.79998779296875,
+ 262
+ ],
+ "flags": {},
+ "order": 59,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "model",
+ "name": "model",
+ "type": "MODEL",
+ "link": 5816
+ },
+ {
+ "localized_name": "positive",
+ "name": "positive",
+ "type": "CONDITIONING",
+ "link": 5739
+ },
+ {
+ "localized_name": "negative",
+ "name": "negative",
+ "type": "CONDITIONING",
+ "link": 5740
+ },
+ {
+ "localized_name": "preset",
+ "name": "preset",
+ "shape": 7,
+ "type": "STG_ADVANCED_PRESET",
+ "link": 5873
+ },
+ {
+ "localized_name": "skip_steps_sigma_threshold",
+ "name": "skip_steps_sigma_threshold",
+ "type": "FLOAT",
+ "widget": {
+ "name": "skip_steps_sigma_threshold"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "cfg_star_rescale",
+ "name": "cfg_star_rescale",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "cfg_star_rescale"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "sigmas",
+ "name": "sigmas",
+ "type": "STRING",
+ "widget": {
+ "name": "sigmas"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "cfg_values",
+ "name": "cfg_values",
+ "type": "STRING",
+ "widget": {
+ "name": "cfg_values"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "stg_scale_values",
+ "name": "stg_scale_values",
+ "type": "STRING",
+ "widget": {
+ "name": "stg_scale_values"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "stg_rescale_values",
+ "name": "stg_rescale_values",
+ "type": "STRING",
+ "widget": {
+ "name": "stg_rescale_values"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "stg_layers_indices",
+ "name": "stg_layers_indices",
+ "type": "STRING",
+ "widget": {
+ "name": "stg_layers_indices"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "GUIDER",
+ "name": "GUIDER",
+ "type": "GUIDER",
+ "links": [
+ 5374
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "STGGuiderAdvanced"
+ },
+ "widgets_values": [
+ 0.9970000000000002,
+ true,
+ "1",
+ "1",
+ "0",
+ "1",
+ "[42]"
+ ]
+ },
+ {
+ "id": 1973,
+ "type": "VHS_VideoCombine",
+ "pos": [
+ 8865.689453125,
+ 2240.21630859375
+ ],
+ "size": [
+ 770.2554931640625,
+ 776.7174072265625
+ ],
+ "flags": {},
+ "order": 76,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "images",
+ "name": "images",
+ "type": "IMAGE",
+ "link": 5872
+ },
+ {
+ "localized_name": "audio",
+ "name": "audio",
+ "shape": 7,
+ "type": "AUDIO",
+ "link": null
+ },
+ {
+ "localized_name": "meta_batch",
+ "name": "meta_batch",
+ "shape": 7,
+ "type": "VHS_BatchManager",
+ "link": null
+ },
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "shape": 7,
+ "type": "VAE",
+ "link": null
+ },
+ {
+ "localized_name": "frame_rate",
+ "name": "frame_rate",
+ "type": "FLOAT",
+ "widget": {
+ "name": "frame_rate"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "loop_count",
+ "name": "loop_count",
+ "type": "INT",
+ "widget": {
+ "name": "loop_count"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "filename_prefix",
+ "name": "filename_prefix",
+ "type": "STRING",
+ "widget": {
+ "name": "filename_prefix"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "format",
+ "name": "format",
+ "type": "COMBO",
+ "widget": {
+ "name": "format"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "pingpong",
+ "name": "pingpong",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "pingpong"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "save_output",
+ "name": "save_output",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "save_output"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "Filenames",
+ "name": "Filenames",
+ "type": "VHS_FILENAMES",
+ "links": null
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "VHS_VideoCombine"
+ },
+ "widgets_values": {
+ "frame_rate": 24,
+ "loop_count": 0,
+ "filename_prefix": "ltxv-ic-lora",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 19,
+ "save_metadata": true,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true,
+ "videopreview": {
+ "hidden": false,
+ "paused": false,
+ "params": {
+ "filename": "ltxv-ic-lora_00379.mp4",
+ "subfolder": "",
+ "type": "output",
+ "format": "video/h264-mp4",
+ "frame_rate": 24,
+ "workflow": "ltxv-ic-lora_00379.png",
+ "fullpath": "/home/tavi/tii_serving/src/comfyui/output/ltxv-ic-lora_00379.mp4"
+ }
+ }
+ }
+ },
+ {
+ "id": 2115,
+ "type": "ImageToCPU",
+ "pos": [
+ 9460.59765625,
+ 3100.857177734375
+ ],
+ "size": [
+ 173.71347045898438,
+ 26
+ ],
+ "flags": {},
+ "order": 62,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "image",
+ "name": "image",
+ "type": "IMAGE",
+ "link": 5868
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5869
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "ImageToCPU"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 2099,
+ "type": "Reroute",
+ "pos": [
+ 9585.7314453125,
+ 2006.6512451171875
+ ],
+ "size": [
+ 82,
+ 26
+ ],
+ "flags": {},
+ "order": 50,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "",
+ "type": "*",
+ "link": 5833
+ }
+ ],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5834
+ ]
+ }
+ ],
+ "properties": {
+ "showOutputText": true,
+ "horizontal": false
+ }
+ },
+ {
+ "id": 2112,
+ "type": "ImageResize+",
+ "pos": [
+ 2482.774169921875,
+ 3041.371337890625
+ ],
+ "size": [
+ 315,
+ 218
+ ],
+ "flags": {},
+ "order": 56,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "image",
+ "name": "image",
+ "type": "IMAGE",
+ "link": 5860
+ },
+ {
+ "localized_name": "width",
+ "name": "width",
+ "type": "INT",
+ "widget": {
+ "name": "width"
+ },
+ "link": 5866
+ },
+ {
+ "localized_name": "height",
+ "name": "height",
+ "type": "INT",
+ "widget": {
+ "name": "height"
+ },
+ "link": 5865
+ },
+ {
+ "localized_name": "interpolation",
+ "name": "interpolation",
+ "type": "COMBO",
+ "widget": {
+ "name": "interpolation"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "method",
+ "name": "method",
+ "type": "COMBO",
+ "widget": {
+ "name": "method"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "condition",
+ "name": "condition",
+ "type": "COMBO",
+ "widget": {
+ "name": "condition"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "multiple_of",
+ "name": "multiple_of",
+ "type": "INT",
+ "widget": {
+ "name": "multiple_of"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5857,
+ 5858,
+ 5868
+ ]
+ },
+ {
+ "localized_name": "width",
+ "name": "width",
+ "type": "INT",
+ "links": null
+ },
+ {
+ "localized_name": "height",
+ "name": "height",
+ "type": "INT",
+ "links": null
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "ImageResize+",
+ "cnr_id": "comfyui_essentials",
+ "ver": "1.1.0"
+ },
+ "widgets_values": [
+ 906,
+ 512,
+ "bilinear",
+ "stretch",
+ "always",
+ 0
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 1970,
+ "type": "ImageConcanate",
+ "pos": [
+ 9828.66796875,
+ 2236.43896484375
+ ],
+ "size": [
+ 315,
+ 102
+ ],
+ "flags": {},
+ "order": 75,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "image1",
+ "name": "image1",
+ "type": "IMAGE",
+ "link": 5619
+ },
+ {
+ "localized_name": "image2",
+ "name": "image2",
+ "type": "IMAGE",
+ "link": 5870
+ },
+ {
+ "localized_name": "direction",
+ "name": "direction",
+ "type": "COMBO",
+ "widget": {
+ "name": "direction"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "match_image_size",
+ "name": "match_image_size",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "match_image_size"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5620
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "ImageConcanate"
+ },
+ "widgets_values": [
+ "down",
+ true
+ ]
+ },
+ {
+ "id": 1968,
+ "type": "ImageConcanate",
+ "pos": [
+ 9769.5576171875,
+ 3081.2392578125
+ ],
+ "size": [
+ 315,
+ 102
+ ],
+ "flags": {},
+ "order": 65,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "image1",
+ "name": "image1",
+ "type": "IMAGE",
+ "link": 5834
+ },
+ {
+ "localized_name": "image2",
+ "name": "image2",
+ "type": "IMAGE",
+ "link": 5869
+ },
+ {
+ "localized_name": "direction",
+ "name": "direction",
+ "type": "COMBO",
+ "widget": {
+ "name": "direction"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "match_image_size",
+ "name": "match_image_size",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "match_image_size"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5619
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "ImageConcanate"
+ },
+ "widgets_values": [
+ "down",
+ true
+ ]
+ },
+ {
+ "id": 1828,
+ "type": "LTXVLatentUpsamplerModelLoader",
+ "pos": [
+ 5641.36572265625,
+ 2517.8828125
+ ],
+ "size": [
+ 349.8224792480469,
+ 113.41394805908203
+ ],
+ "flags": {},
+ "order": 17,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "upscale_model",
+ "name": "upscale_model",
+ "type": "COMBO",
+ "widget": {
+ "name": "upscale_model"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "spatial_upsample",
+ "name": "spatial_upsample",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "spatial_upsample"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "temporal_upsample",
+ "name": "temporal_upsample",
+ "type": "BOOLEAN",
+ "widget": {
+ "name": "temporal_upsample"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "UPSCALE_MODEL",
+ "name": "UPSCALE_MODEL",
+ "type": "UPSCALE_MODEL",
+ "links": [
+ 5303
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "LTXVLatentUpsamplerModelLoader"
+ },
+ "widgets_values": [
+ "ltxv-spatial-upscaler-0.9.7.safetensors",
+ true,
+ false
+ ]
+ },
+ {
+ "id": 2084,
+ "type": "PreviewImage",
+ "pos": [
+ 2663.074951171875,
+ 3387.062255859375
+ ],
+ "size": [
+ 140,
+ 246
+ ],
+ "flags": {},
+ "order": 61,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "images",
+ "name": "images",
+ "type": "IMAGE",
+ "link": 5858
+ }
+ ],
+ "outputs": [],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.43",
+ "Node name for S&R": "PreviewImage"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 2116,
+ "type": "STGAdvancedPresets",
+ "pos": [
+ 7011.1591796875,
+ 2521.542724609375
+ ],
+ "size": [
+ 292.0787048339844,
+ 58
+ ],
+ "flags": {},
+ "order": 18,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "preset",
+ "name": "preset",
+ "type": "COMBO",
+ "widget": {
+ "name": "preset"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "STG_ADVANCED_PRESET",
+ "name": "STG_ADVANCED_PRESET",
+ "type": "STG_ADVANCED_PRESET",
+ "links": [
+ 5873
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "STGAdvancedPresets"
+ },
+ "widgets_values": [
+ "13b Distilled"
+ ]
+ },
+ {
+ "id": 1967,
+ "type": "STGAdvancedPresets",
+ "pos": [
+ 2692.8740234375,
+ 2423.29248046875
+ ],
+ "size": [
+ 340.20001220703125,
+ 58
+ ],
+ "flags": {},
+ "order": 19,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "preset",
+ "name": "preset",
+ "type": "COMBO",
+ "widget": {
+ "name": "preset"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "STG_ADVANCED_PRESET",
+ "name": "STG_ADVANCED_PRESET",
+ "type": "STG_ADVANCED_PRESET",
+ "links": [
+ 5613
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "STGAdvancedPresets"
+ },
+ "widgets_values": [
+ "13b Distilled"
+ ]
+ },
+ {
+ "id": 1601,
+ "type": "VAEDecodeTiled",
+ "pos": [
+ 8482.880859375,
+ 2528.389892578125
+ ],
+ "size": [
+ 210,
+ 150
+ ],
+ "flags": {},
+ "order": 74,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "samples",
+ "name": "samples",
+ "type": "LATENT",
+ "link": 5416
+ },
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "type": "VAE",
+ "link": 5875
+ },
+ {
+ "localized_name": "tile_size",
+ "name": "tile_size",
+ "type": "INT",
+ "widget": {
+ "name": "tile_size"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "overlap",
+ "name": "overlap",
+ "type": "INT",
+ "widget": {
+ "name": "overlap"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "temporal_size",
+ "name": "temporal_size",
+ "type": "INT",
+ "widget": {
+ "name": "temporal_size"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "temporal_overlap",
+ "name": "temporal_overlap",
+ "type": "INT",
+ "widget": {
+ "name": "temporal_overlap"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "IMAGE",
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 5870,
+ 5872
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.29",
+ "Node name for S&R": "VAEDecodeTiled"
+ },
+ "widgets_values": [
+ 1280,
+ 128,
+ 256,
+ 32
+ ]
+ },
+ {
+ "id": 2117,
+ "type": "Set VAE Decoder Noise",
+ "pos": [
+ 8432.9091796875,
+ 2244.804443359375
+ ],
+ "size": [
+ 294.1568298339844,
+ 130
+ ],
+ "flags": {},
+ "order": 66,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "vae",
+ "name": "vae",
+ "type": "VAE",
+ "link": 5874
+ },
+ {
+ "localized_name": "timestep",
+ "name": "timestep",
+ "type": "FLOAT",
+ "widget": {
+ "name": "timestep"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "scale",
+ "name": "scale",
+ "type": "FLOAT",
+ "widget": {
+ "name": "scale"
+ },
+ "link": null
+ },
+ {
+ "localized_name": "seed",
+ "name": "seed",
+ "type": "INT",
+ "widget": {
+ "name": "seed"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "VAE",
+ "name": "VAE",
+ "type": "VAE",
+ "links": [
+ 5875
+ ]
+ }
+ ],
+ "properties": {
+ "Node name for S&R": "Set VAE Decoder Noise"
+ },
+ "widgets_values": [
+ 0.05,
+ 0.025,
+ 42,
+ "fixed"
+ ]
+ },
+ {
+ "id": 2080,
+ "type": "PrimitiveInt",
+ "pos": [
+ 1924.9884033203125,
+ 3231.683349609375
+ ],
+ "size": [
+ 214.14598083496094,
+ 86.13136291503906
+ ],
+ "flags": {},
+ "order": 20,
+ "mode": 0,
+ "inputs": [
+ {
+ "localized_name": "value",
+ "name": "value",
+ "type": "INT",
+ "widget": {
+ "name": "value"
+ },
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "localized_name": "INT",
+ "name": "INT",
+ "type": "INT",
+ "links": [
+ 5810,
+ 5811
+ ]
+ }
+ ],
+ "title": "Switcher",
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.43",
+ "Node name for S&R": "PrimitiveInt"
+ },
+ "widgets_values": [
+ 3,
+ "fixed"
+ ],
+ "color": "#232",
+ "bgcolor": "#353"
+ }
+ ],
+ "links": [
+ [
+ 3364,
+ 6,
+ 0,
+ 1241,
+ 0,
+ "CONDITIONING"
+ ],
+ [
+ 3365,
+ 7,
+ 0,
+ 1241,
+ 1,
+ "CONDITIONING"
+ ],
+ [
+ 3578,
+ 1335,
+ 0,
+ 1336,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5297,
+ 1691,
+ 0,
+ 1593,
+ 0,
+ "LATENT"
+ ],
+ [
+ 5303,
+ 1828,
+ 0,
+ 1691,
+ 1,
+ "UPSCALE_MODEL"
+ ],
+ [
+ 5363,
+ 1870,
+ 0,
+ 1335,
+ 1,
+ "VAE"
+ ],
+ [
+ 5371,
+ 1598,
+ 0,
+ 1872,
+ 2,
+ "NOISE"
+ ],
+ [
+ 5374,
+ 1871,
+ 0,
+ 1872,
+ 5,
+ "GUIDER"
+ ],
+ [
+ 5416,
+ 1872,
+ 1,
+ 1601,
+ 0,
+ "LATENT"
+ ],
+ [
+ 5512,
+ 1593,
+ 0,
+ 1872,
+ 6,
+ "LATENT"
+ ],
+ [
+ 5519,
+ 1926,
+ 0,
+ 1872,
+ 3,
+ "SAMPLER"
+ ],
+ [
+ 5567,
+ 1952,
+ 0,
+ 1953,
+ 0,
+ "FLOAT"
+ ],
+ [
+ 5584,
+ 1241,
+ 0,
+ 1921,
+ 1,
+ "CONDITIONING"
+ ],
+ [
+ 5585,
+ 1241,
+ 1,
+ 1921,
+ 2,
+ "CONDITIONING"
+ ],
+ [
+ 5587,
+ 1921,
+ 0,
+ 1961,
+ 1,
+ "GUIDER"
+ ],
+ [
+ 5588,
+ 73,
+ 0,
+ 1961,
+ 2,
+ "SAMPLER"
+ ],
+ [
+ 5590,
+ 1507,
+ 0,
+ 1961,
+ 4,
+ "NOISE"
+ ],
+ [
+ 5591,
+ 1959,
+ 0,
+ 1961,
+ 5,
+ "LATENT"
+ ],
+ [
+ 5593,
+ 1961,
+ 0,
+ 1335,
+ 0,
+ "LATENT"
+ ],
+ [
+ 5602,
+ 38,
+ 0,
+ 6,
+ 0,
+ "CLIP"
+ ],
+ [
+ 5603,
+ 38,
+ 0,
+ 7,
+ 0,
+ "CLIP"
+ ],
+ [
+ 5607,
+ 1949,
+ 0,
+ 1961,
+ 3,
+ "SIGMAS"
+ ],
+ [
+ 5613,
+ 1967,
+ 0,
+ 1921,
+ 3,
+ "STG_ADVANCED_PRESET"
+ ],
+ [
+ 5619,
+ 1968,
+ 0,
+ 1970,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5620,
+ 1970,
+ 0,
+ 1950,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5640,
+ 1896,
+ 0,
+ 1964,
+ 0,
+ "MODEL"
+ ],
+ [
+ 5641,
+ 1953,
+ 0,
+ 1949,
+ 0,
+ "SIGMAS"
+ ],
+ [
+ 5651,
+ 1980,
+ 0,
+ 1979,
+ 0,
+ "DEPTHCRAFTER_MODEL"
+ ],
+ [
+ 5657,
+ 1963,
+ 0,
+ 1979,
+ 1,
+ "IMAGE"
+ ],
+ [
+ 5659,
+ 1963,
+ 0,
+ 1983,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5665,
+ 1979,
+ 0,
+ 1987,
+ 0,
+ "*"
+ ],
+ [
+ 5666,
+ 1983,
+ 0,
+ 1987,
+ 3,
+ "IMAGE"
+ ],
+ [
+ 5668,
+ 1896,
+ 0,
+ 1986,
+ 0,
+ "MODEL"
+ ],
+ [
+ 5669,
+ 1964,
+ 0,
+ 1988,
+ 0,
+ "*"
+ ],
+ [
+ 5670,
+ 1986,
+ 0,
+ 1988,
+ 3,
+ "MODEL"
+ ],
+ [
+ 5676,
+ 1963,
+ 0,
+ 1992,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5677,
+ 1896,
+ 0,
+ 1993,
+ 0,
+ "MODEL"
+ ],
+ [
+ 5678,
+ 1993,
+ 0,
+ 1988,
+ 4,
+ "MODEL"
+ ],
+ [
+ 5679,
+ 1992,
+ 0,
+ 1987,
+ 4,
+ "IMAGE"
+ ],
+ [
+ 5715,
+ 1241,
+ 0,
+ 2022,
+ 0,
+ "*"
+ ],
+ [
+ 5716,
+ 1241,
+ 1,
+ 2023,
+ 0,
+ "*"
+ ],
+ [
+ 5739,
+ 2037,
+ 0,
+ 1871,
+ 1,
+ "CONDITIONING"
+ ],
+ [
+ 5740,
+ 2038,
+ 0,
+ 1871,
+ 2,
+ "CONDITIONING"
+ ],
+ [
+ 5741,
+ 2022,
+ 0,
+ 2037,
+ 0,
+ "*"
+ ],
+ [
+ 5742,
+ 2023,
+ 0,
+ 2038,
+ 0,
+ "*"
+ ],
+ [
+ 5782,
+ 2072,
+ 0,
+ 2073,
+ 0,
+ "FLOAT"
+ ],
+ [
+ 5784,
+ 2073,
+ 0,
+ 1872,
+ 4,
+ "SIGMAS"
+ ],
+ [
+ 5805,
+ 1960,
+ 0,
+ 1961,
+ 6,
+ "IMAGE"
+ ],
+ [
+ 5807,
+ 2079,
+ 0,
+ 2077,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5809,
+ 2079,
+ 0,
+ 1963,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5810,
+ 2080,
+ 0,
+ 1987,
+ 1,
+ "INT"
+ ],
+ [
+ 5811,
+ 2080,
+ 0,
+ 1988,
+ 1,
+ "INT"
+ ],
+ [
+ 5813,
+ 2077,
+ 0,
+ 2085,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5814,
+ 1896,
+ 0,
+ 2088,
+ 0,
+ "*"
+ ],
+ [
+ 5815,
+ 2088,
+ 0,
+ 2089,
+ 0,
+ "*"
+ ],
+ [
+ 5816,
+ 2089,
+ 0,
+ 1871,
+ 0,
+ "MODEL"
+ ],
+ [
+ 5817,
+ 2089,
+ 0,
+ 1872,
+ 0,
+ "MODEL"
+ ],
+ [
+ 5818,
+ 1896,
+ 2,
+ 2090,
+ 0,
+ "*"
+ ],
+ [
+ 5820,
+ 2091,
+ 0,
+ 1691,
+ 2,
+ "VAE"
+ ],
+ [
+ 5821,
+ 2091,
+ 0,
+ 2092,
+ 0,
+ "*"
+ ],
+ [
+ 5822,
+ 2092,
+ 0,
+ 1872,
+ 1,
+ "VAE"
+ ],
+ [
+ 5823,
+ 2092,
+ 0,
+ 2093,
+ 0,
+ "*"
+ ],
+ [
+ 5825,
+ 1896,
+ 2,
+ 2094,
+ 0,
+ "*"
+ ],
+ [
+ 5826,
+ 2094,
+ 0,
+ 2095,
+ 0,
+ "*"
+ ],
+ [
+ 5827,
+ 2095,
+ 0,
+ 1959,
+ 1,
+ "VAE"
+ ],
+ [
+ 5828,
+ 2095,
+ 0,
+ 1870,
+ 0,
+ "VAE"
+ ],
+ [
+ 5829,
+ 2090,
+ 0,
+ 2096,
+ 0,
+ "*"
+ ],
+ [
+ 5830,
+ 2096,
+ 0,
+ 1961,
+ 0,
+ "VAE"
+ ],
+ [
+ 5831,
+ 2096,
+ 0,
+ 2091,
+ 0,
+ "*"
+ ],
+ [
+ 5832,
+ 1963,
+ 0,
+ 2098,
+ 0,
+ "*"
+ ],
+ [
+ 5833,
+ 2098,
+ 0,
+ 2099,
+ 0,
+ "*"
+ ],
+ [
+ 5834,
+ 2099,
+ 0,
+ 1968,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5835,
+ 1960,
+ 0,
+ 2100,
+ 0,
+ "*"
+ ],
+ [
+ 5836,
+ 2100,
+ 0,
+ 1872,
+ 7,
+ "IMAGE"
+ ],
+ [
+ 5837,
+ 1961,
+ 0,
+ 2101,
+ 0,
+ "*"
+ ],
+ [
+ 5838,
+ 2101,
+ 0,
+ 2102,
+ 0,
+ "*"
+ ],
+ [
+ 5839,
+ 2102,
+ 0,
+ 1691,
+ 0,
+ "LATENT"
+ ],
+ [
+ 5840,
+ 2102,
+ 0,
+ 1593,
+ 1,
+ "LATENT"
+ ],
+ [
+ 5844,
+ 2104,
+ 0,
+ 1921,
+ 0,
+ "MODEL"
+ ],
+ [
+ 5845,
+ 1988,
+ 0,
+ 2104,
+ 0,
+ "MODEL"
+ ],
+ [
+ 5857,
+ 2112,
+ 0,
+ 1959,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5858,
+ 2112,
+ 0,
+ 2084,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5860,
+ 1987,
+ 0,
+ 2112,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5863,
+ 1963,
+ 1,
+ 2113,
+ 0,
+ "*"
+ ],
+ [
+ 5864,
+ 1963,
+ 2,
+ 2114,
+ 0,
+ "*"
+ ],
+ [
+ 5865,
+ 2114,
+ 0,
+ 2112,
+ 2,
+ "INT"
+ ],
+ [
+ 5866,
+ 2113,
+ 0,
+ 2112,
+ 1,
+ "INT"
+ ],
+ [
+ 5868,
+ 2112,
+ 0,
+ 2115,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5869,
+ 2115,
+ 0,
+ 1968,
+ 1,
+ "IMAGE"
+ ],
+ [
+ 5870,
+ 1601,
+ 0,
+ 1970,
+ 1,
+ "IMAGE"
+ ],
+ [
+ 5872,
+ 1601,
+ 0,
+ 1973,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 5873,
+ 2116,
+ 0,
+ 1871,
+ 3,
+ "STG_ADVANCED_PRESET"
+ ],
+ [
+ 5874,
+ 2093,
+ 0,
+ 2117,
+ 0,
+ "VAE"
+ ],
+ [
+ 5875,
+ 2117,
+ 0,
+ 1601,
+ 1,
+ "VAE"
+ ]
+ ],
+ "groups": [
+ {
+ "id": 34,
+ "title": "Latent Upscaler",
+ "bounding": [
+ 5585.8896484375,
+ 2108.431640625,
+ 1216.6287841796875,
+ 603.0308227539062
+ ],
+ "color": "#a1309b",
+ "font_size": 24,
+ "flags": {},
+ "nodes": [
+ 1691,
+ 1593,
+ 1828
+ ]
+ },
+ {
+ "id": 42,
+ "title": "Add Details",
+ "bounding": [
+ 6819.53369140625,
+ 2112.526123046875,
+ 2866.58203125,
+ 1085.7049560546875
+ ],
+ "color": "#a1309b",
+ "font_size": 24,
+ "flags": {},
+ "nodes": [
+ 1926,
+ 2038,
+ 2037,
+ 2073,
+ 2072,
+ 1872,
+ 1598,
+ 2100,
+ 1871,
+ 1973,
+ 2115,
+ 2116,
+ 1601,
+ 2117
+ ]
+ },
+ {
+ "id": 44,
+ "title": "Output",
+ "bounding": [
+ 9712.82421875,
+ 2117.894775390625,
+ 1242.4295654296875,
+ 1890.6920166015625
+ ],
+ "color": "#3f789e",
+ "font_size": 24,
+ "flags": {},
+ "nodes": [
+ 1950,
+ 1970,
+ 1968
+ ]
+ },
+ {
+ "id": 45,
+ "title": "Depth/Pose/Canny Switch",
+ "bounding": [
+ 1907.455078125,
+ 2950.85595703125,
+ 902.2568969726562,
+ 700.470947265625
+ ],
+ "color": "#88A",
+ "font_size": 24,
+ "flags": {},
+ "nodes": [
+ 1988,
+ 2082,
+ 1987,
+ 2112,
+ 2084,
+ 2080
+ ]
+ },
+ {
+ "id": 46,
+ "title": "Reference Image",
+ "bounding": [
+ 2830.802978515625,
+ 2951.947509765625,
+ 1355.751220703125,
+ 698.8899536132812
+ ],
+ "color": "#8A8",
+ "font_size": 24,
+ "flags": {},
+ "nodes": [
+ 2087,
+ 2083,
+ 1960
+ ]
+ },
+ {
+ "id": 47,
+ "title": "Load Models",
+ "bounding": [
+ 845.1767578125,
+ 2106.341064453125,
+ 1038.2540283203125,
+ 1543.609619140625
+ ],
+ "color": "#b06634",
+ "font_size": 24,
+ "flags": {},
+ "nodes": [
+ 1992,
+ 2094,
+ 1979,
+ 1980,
+ 1983,
+ 1986,
+ 1993,
+ 1964,
+ 1896
+ ]
+ },
+ {
+ "id": 48,
+ "title": "LTXV Base Video",
+ "bounding": [
+ 1902.1943359375,
+ 2103.927490234375,
+ 3663.2529296875,
+ 825.6270751953125
+ ],
+ "color": "#3f789e",
+ "font_size": 24,
+ "flags": {},
+ "nodes": [
+ 1949,
+ 1953,
+ 73,
+ 1241,
+ 2023,
+ 1335,
+ 1952,
+ 1921,
+ 7,
+ 2097,
+ 38,
+ 2022,
+ 1507,
+ 1961,
+ 2101,
+ 1336,
+ 1870,
+ 1959,
+ 2095,
+ 6,
+ 2113,
+ 2114,
+ 1967
+ ]
+ },
+ {
+ "id": 49,
+ "title": "Load Video",
+ "bounding": [
+ -127.42426300048828,
+ 2635.7158203125,
+ 952.9157104492188,
+ 1012.75341796875
+ ],
+ "color": "#3f789e",
+ "font_size": 24,
+ "flags": {},
+ "nodes": [
+ 2077,
+ 2085,
+ 2081,
+ 2079,
+ 1963
+ ]
+ },
+ {
+ "id": 50,
+ "title": "Style/Character Lora Loader",
+ "bounding": [
+ 2548.5966796875,
+ 3672.4814453125,
+ 376.3236083984375,
+ 400.6346435546875
+ ],
+ "color": "#8A8",
+ "font_size": 24,
+ "flags": {},
+ "nodes": [
+ 2106,
+ 2104
+ ]
+ }
+ ],
+ "config": {},
+ "extra": {
+ "ds": {
+ "scale": 0.6115909044841675,
+ "offset": [
+ -8454.845605863586,
+ -1886.1836599441149
+ ]
+ },
+ "frontendVersion": "1.17.11",
+ "VHS_latentpreview": true,
+ "VHS_latentpreviewrate": 0,
+ "VHS_MetadataImage": true,
+ "VHS_KeepIntermediate": true,
+ "prompt": {
+ "6": {
+ "inputs": {
+ "text": "robot walking in the desert",
+ "clip": [
+ "38",
+ 0
+ ]
+ },
+ "class_type": "CLIPTextEncode",
+ "_meta": {
+ "title": "CLIP Text Encode (Positive Prompt)"
+ }
+ },
+ "7": {
+ "inputs": {
+ "text": "low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
+ "clip": [
+ "38",
+ 0
+ ]
+ },
+ "class_type": "CLIPTextEncode",
+ "_meta": {
+ "title": "CLIP Text Encode (Negative Prompt)"
+ }
+ },
+ "38": {
+ "inputs": {
+ "clip_name": "t5xxl_fp16.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "class_type": "CLIPLoader",
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "73": {
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "class_type": "KSamplerSelect",
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "1241": {
+ "inputs": {
+ "frame_rate": 24.000000000000004,
+ "positive": [
+ "6",
+ 0
+ ],
+ "negative": [
+ "7",
+ 0
+ ]
+ },
+ "class_type": "LTXVConditioning",
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "1335": {
+ "inputs": {
+ "samples": [
+ "1961",
+ 0
+ ],
+ "vae": [
+ "1870",
+ 0
+ ]
+ },
+ "class_type": "VAEDecode",
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "1336": {
+ "inputs": {
+ "frame_rate": 24,
+ "loop_count": 0,
+ "filename_prefix": "ltxv-base",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 19,
+ "save_metadata": true,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": false,
+ "images": [
+ "1335",
+ 0
+ ]
+ },
+ "class_type": "VHS_VideoCombine",
+ "_meta": {
+ "title": "Video Combine 🎥🅥🅗🅢"
+ }
+ },
+ "1507": {
+ "inputs": {
+ "noise_seed": 2816
+ },
+ "class_type": "RandomNoise",
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "1593": {
+ "inputs": {
+ "factor": 0.25,
+ "latents": [
+ "1691",
+ 0
+ ],
+ "reference": [
+ "1961",
+ 0
+ ]
+ },
+ "class_type": "LTXVAdainLatent",
+ "_meta": {
+ "title": "🅛🅣🅧 LTXV Adain Latent"
+ }
+ },
+ "1598": {
+ "inputs": {
+ "noise_seed": 1625
+ },
+ "class_type": "RandomNoise",
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "1601": {
+ "inputs": {
+ "tile_size": 1280,
+ "overlap": 128,
+ "temporal_size": 256,
+ "temporal_overlap": 32,
+ "samples": [
+ "1872",
+ 1
+ ],
+ "vae": [
+ "2117",
+ 0
+ ]
+ },
+ "class_type": "VAEDecodeTiled",
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "1691": {
+ "inputs": {
+ "samples": [
+ "1961",
+ 0
+ ],
+ "upscale_model": [
+ "1828",
+ 0
+ ],
+ "vae": [
+ "1896",
+ 2
+ ]
+ },
+ "class_type": "LTXVLatentUpsampler",
+ "_meta": {
+ "title": "🅛🅣🅧 LTXV Latent Upsampler"
+ }
+ },
+ "1828": {
+ "inputs": {
+ "upscale_model": "ltxv-spatial-upscaler-0.9.7.safetensors",
+ "spatial_upsample": true,
+ "temporal_upsample": false
+ },
+ "class_type": "LTXVLatentUpsamplerModelLoader",
+ "_meta": {
+ "title": "🅛🅣🅧 LTXV Latent Upsampler Model Loader"
+ }
+ },
+ "1870": {
+ "inputs": {
+ "timestep": 0.05000000000000001,
+ "scale": 0.025000000000000005,
+ "seed": 42,
+ "vae": [
+ "1896",
+ 2
+ ]
+ },
+ "class_type": "Set VAE Decoder Noise",
+ "_meta": {
+ "title": "🅛🅣🅧 Set VAE Decoder Noise"
+ }
+ },
+ "1871": {
+ "inputs": {
+ "skip_steps_sigma_threshold": 0.9970000000000002,
+ "cfg_star_rescale": true,
+ "sigmas": "1",
+ "cfg_values": "1",
+ "stg_scale_values": "0",
+ "stg_rescale_values": "1",
+ "stg_layers_indices": "[42]",
+ "model": [
+ "1896",
+ 0
+ ],
+ "positive": [
+ "1241",
+ 0
+ ],
+ "negative": [
+ "1241",
+ 1
+ ],
+ "preset": [
+ "2116",
+ 0
+ ]
+ },
+ "class_type": "STGGuiderAdvanced",
+ "_meta": {
+ "title": "🅛🅣🅧 STG Guider Advanced"
+ }
+ },
+ "1872": {
+ "inputs": {
+ "horizontal_tiles": 1,
+ "vertical_tiles": 1,
+ "overlap": 3,
+ "latents_cond_strength": 0.15,
+ "boost_latent_similarity": true,
+ "crop": "disabled",
+ "optional_cond_indices": "0",
+ "images_cond_strengths": "0.9",
+ "model": [
+ "1896",
+ 0
+ ],
+ "vae": [
+ "1896",
+ 2
+ ],
+ "noise": [
+ "1598",
+ 0
+ ],
+ "sampler": [
+ "1926",
+ 0
+ ],
+ "sigmas": [
+ "2073",
+ 0
+ ],
+ "guider": [
+ "1871",
+ 0
+ ],
+ "latents": [
+ "1593",
+ 0
+ ],
+ "optional_cond_images": [
+ "1960",
+ 0
+ ]
+ },
+ "class_type": "LTXVTiledSampler",
+ "_meta": {
+ "title": "🅛🅣🅧 LTXV Tiled Sampler"
+ }
+ },
+ "1896": {
+ "inputs": {
+ "ckpt_name": "ltxv-13b-0.9.7-distilled.safetensors"
+ },
+ "class_type": "CheckpointLoaderSimple",
+ "_meta": {
+ "title": "Load Checkpoint"
+ }
+ },
+ "1921": {
+ "inputs": {
+ "skip_steps_sigma_threshold": 0.9970000000000002,
+ "cfg_star_rescale": true,
+ "sigmas": "1",
+ "cfg_values": "1",
+ "stg_scale_values": "0,0,0,0,0,0",
+ "stg_rescale_values": "1",
+ "stg_layers_indices": "[25]",
+ "model": [
+ "1988",
+ 0
+ ],
+ "positive": [
+ "1241",
+ 0
+ ],
+ "negative": [
+ "1241",
+ 1
+ ],
+ "preset": [
+ "1967",
+ 0
+ ]
+ },
+ "class_type": "STGGuiderAdvanced",
+ "_meta": {
+ "title": "🅛🅣🅧 STG Guider Advanced"
+ }
+ },
+ "1926": {
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "class_type": "KSamplerSelect",
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "1949": {
+ "inputs": {
+ "sigmas": [
+ "1953",
+ 0
+ ]
+ },
+ "class_type": "PrintSigmas",
+ "_meta": {
+ "title": "PrintSigmas"
+ }
+ },
+ "1950": {
+ "inputs": {
+ "frame_rate": 24,
+ "loop_count": 0,
+ "filename_prefix": "ltxv-ic-lora-stack",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 19,
+ "save_metadata": true,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true,
+ "images": [
+ "1970",
+ 0
+ ]
+ },
+ "class_type": "VHS_VideoCombine",
+ "_meta": {
+ "title": "Video Combine 🎥🅥🅗🅢"
+ }
+ },
+ "1952": {
+ "inputs": {
+ "string": "1.0000, 0.9937, 0.9875, 0.9812, 0.9750, 0.9094, 0.7250, 0.4219, 0.0\n"
+ },
+ "class_type": "StringToFloatList",
+ "_meta": {
+ "title": "String to Float List"
+ }
+ },
+ "1953": {
+ "inputs": {
+ "float_list": [
+ "1952",
+ 0
+ ]
+ },
+ "class_type": "FloatToSigmas",
+ "_meta": {
+ "title": "Float To Sigmas"
+ }
+ },
+ "1959": {
+ "inputs": {
+ "pixels": [
+ "2112",
+ 0
+ ],
+ "vae": [
+ "1896",
+ 2
+ ]
+ },
+ "class_type": "VAEEncode",
+ "_meta": {
+ "title": "VAE Encode"
+ }
+ },
+ "1960": {
+ "inputs": {
+ "image": "ComfyUI_temp_tzqoq_00002_.png"
+ },
+ "class_type": "LoadImage",
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "1961": {
+ "inputs": {
+ "num_frames": -1,
+ "vae": [
+ "1896",
+ 2
+ ],
+ "guider": [
+ "1921",
+ 0
+ ],
+ "sampler": [
+ "73",
+ 0
+ ],
+ "sigmas": [
+ "1949",
+ 0
+ ],
+ "noise": [
+ "1507",
+ 0
+ ],
+ "guiding_latents": [
+ "1959",
+ 0
+ ],
+ "optional_cond_image": [
+ "1960",
+ 0
+ ]
+ },
+ "class_type": "LTXVInContextSampler",
+ "_meta": {
+ "title": "🅛🅣🅧 LTXV In Context Sampler"
+ }
+ },
+ "1963": {
+ "inputs": {
+ "width": 906,
+ "height": 512,
+ "interpolation": "bilinear",
+ "method": "fill / crop",
+ "condition": "always",
+ "multiple_of": 0,
+ "image": [
+ "2079",
+ 0
+ ]
+ },
+ "class_type": "ImageResize+",
+ "_meta": {
+ "title": "🔧 Image Resize"
+ }
+ },
+ "1964": {
+ "inputs": {
+ "lora_name": "ltxv-097-ic-lora-depth-control.safetensors",
+ "strength_model": 1.0000000000000002,
+ "model": [
+ "1896",
+ 0
+ ]
+ },
+ "class_type": "LoraLoaderModelOnly",
+ "_meta": {
+ "title": "LoraLoaderModelOnly"
+ }
+ },
+ "1967": {
+ "inputs": {
+ "preset": "13b Distilled"
+ },
+ "class_type": "STGAdvancedPresets",
+ "_meta": {
+ "title": "🅛🅣🅧 STG Advanced Presets"
+ }
+ },
+ "1968": {
+ "inputs": {
+ "direction": "down",
+ "match_image_size": true,
+ "image1": [
+ "1963",
+ 0
+ ],
+ "image2": [
+ "2115",
+ 0
+ ]
+ },
+ "class_type": "ImageConcanate",
+ "_meta": {
+ "title": "Image Concatenate"
+ }
+ },
+ "1970": {
+ "inputs": {
+ "direction": "down",
+ "match_image_size": true,
+ "image1": [
+ "1968",
+ 0
+ ],
+ "image2": [
+ "1601",
+ 0
+ ]
+ },
+ "class_type": "ImageConcanate",
+ "_meta": {
+ "title": "Image Concatenate"
+ }
+ },
+ "1973": {
+ "inputs": {
+ "frame_rate": 24,
+ "loop_count": 0,
+ "filename_prefix": "ltxv-ic-lora",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 19,
+ "save_metadata": true,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true,
+ "images": [
+ "1601",
+ 0
+ ]
+ },
+ "class_type": "VHS_VideoCombine",
+ "_meta": {
+ "title": "Video Combine 🎥🅥🅗🅢"
+ }
+ },
+ "1979": {
+ "inputs": {
+ "max_res": 512,
+ "num_inference_steps": 5,
+ "guidance_scale": 1,
+ "window_size": 110,
+ "overlap": 25,
+ "depthcrafter_model": [
+ "1980",
+ 0
+ ],
+ "images": [
+ "1963",
+ 0
+ ]
+ },
+ "class_type": "DepthCrafter",
+ "_meta": {
+ "title": "DepthCrafter"
+ }
+ },
+ "1980": {
+ "inputs": {
+ "enable_model_cpu_offload": true,
+ "enable_sequential_cpu_offload": false
+ },
+ "class_type": "DownloadAndLoadDepthCrafterModel",
+ "_meta": {
+ "title": "DownloadAndLoadDepthCrafterModel"
+ }
+ },
+ "1983": {
+ "inputs": {
+ "detect_hand": "enable",
+ "detect_body": "enable",
+ "detect_face": "enable",
+ "resolution": 512,
+ "bbox_detector": "yolox_l.onnx",
+ "pose_estimator": "dw-ll_ucoco_384_bs5.torchscript.pt",
+ "scale_stick_for_xinsr_cn": "disable",
+ "image": [
+ "1963",
+ 0
+ ]
+ },
+ "class_type": "DWPreprocessor",
+ "_meta": {
+ "title": "DWPose Estimator"
+ }
+ },
+ "1986": {
+ "inputs": {
+ "lora_name": "ltxv-097-ic-lora-pose-control.safetensors",
+ "strength_model": 1.0000000000000002,
+ "model": [
+ "1896",
+ 0
+ ]
+ },
+ "class_type": "LoraLoaderModelOnly",
+ "_meta": {
+ "title": "LoraLoaderModelOnly"
+ }
+ },
+ "1987": {
+ "inputs": {
+ "select": [
+ "2080",
+ 0
+ ],
+ "sel_mode": false,
+ "input1": [
+ "1979",
+ 0
+ ],
+ "input2": [
+ "1983",
+ 0
+ ],
+ "input3": [
+ "1992",
+ 0
+ ]
+ },
+ "class_type": "ImpactSwitch",
+ "_meta": {
+ "title": "Switch (Any)"
+ }
+ },
+ "1988": {
+ "inputs": {
+ "select": [
+ "2080",
+ 0
+ ],
+ "sel_mode": true,
+ "input1": [
+ "1964",
+ 0
+ ],
+ "input2": [
+ "1986",
+ 0
+ ],
+ "input3": [
+ "1993",
+ 0
+ ]
+ },
+ "class_type": "ImpactSwitch",
+ "_meta": {
+ "title": "Switch (Any)"
+ }
+ },
+ "1992": {
+ "inputs": {
+ "low_threshold": 0.4,
+ "high_threshold": 0.8,
+ "image": [
+ "1963",
+ 0
+ ]
+ },
+ "class_type": "Canny",
+ "_meta": {
+ "title": "Canny"
+ }
+ },
+ "1993": {
+ "inputs": {
+ "lora_name": "ltxv-097-ic-lora-canny-control.safetensors",
+ "strength_model": 1.0000000000000002,
+ "model": [
+ "1896",
+ 0
+ ]
+ },
+ "class_type": "LoraLoaderModelOnly",
+ "_meta": {
+ "title": "LoraLoaderModelOnly"
+ }
+ },
+ "2072": {
+ "inputs": {
+ "string": "0.80, 0.7250, 0.6, 0.4219, 0.0"
+ },
+ "class_type": "StringToFloatList",
+ "_meta": {
+ "title": "String to Float List"
+ }
+ },
+ "2073": {
+ "inputs": {
+ "float_list": [
+ "2072",
+ 0
+ ]
+ },
+ "class_type": "FloatToSigmas",
+ "_meta": {
+ "title": "Float To Sigmas"
+ }
+ },
+ "2077": {
+ "inputs": {
+ "indexes": "0",
+ "err_if_missing": true,
+ "err_if_empty": true,
+ "image": [
+ "2079",
+ 0
+ ]
+ },
+ "class_type": "VHS_SelectImages",
+ "_meta": {
+ "title": "Select Images 🎥🅥🅗🅢"
+ }
+ },
+ "2079": {
+ "inputs": {
+ "video": "man_walking.mp4",
+ "force_rate": 0,
+ "custom_width": 0,
+ "custom_height": 0,
+ "frame_load_cap": 121,
+ "skip_first_frames": 0,
+ "select_every_nth": 1,
+ "format": "LTXV"
+ },
+ "class_type": "VHS_LoadVideo",
+ "_meta": {
+ "title": "Load Video (Upload) 🎥🅥🅗🅢"
+ }
+ },
+ "2080": {
+ "inputs": {
+ "value": 3
+ },
+ "class_type": "PrimitiveInt",
+ "_meta": {
+ "title": "Switcher"
+ }
+ },
+ "2084": {
+ "inputs": {
+ "images": [
+ "2112",
+ 0
+ ]
+ },
+ "class_type": "PreviewImage",
+ "_meta": {
+ "title": "Preview Image"
+ }
+ },
+ "2085": {
+ "inputs": {
+ "images": [
+ "2077",
+ 0
+ ]
+ },
+ "class_type": "PreviewImage",
+ "_meta": {
+ "title": "Preview Image"
+ }
+ },
+ "2112": {
+ "inputs": {
+ "width": [
+ "1963",
+ 1
+ ],
+ "height": [
+ "1963",
+ 2
+ ],
+ "interpolation": "bilinear",
+ "method": "stretch",
+ "condition": "always",
+ "multiple_of": 0,
+ "image": [
+ "1987",
+ 0
+ ]
+ },
+ "class_type": "ImageResize+",
+ "_meta": {
+ "title": "🔧 Image Resize"
+ }
+ },
+ "2115": {
+ "inputs": {
+ "image": [
+ "2112",
+ 0
+ ]
+ },
+ "class_type": "ImageToCPU",
+ "_meta": {
+ "title": "🅛🅣🅧 Image to CPU"
+ }
+ },
+ "2116": {
+ "inputs": {
+ "preset": "13b Distilled"
+ },
+ "class_type": "STGAdvancedPresets",
+ "_meta": {
+ "title": "🅛🅣🅧 STG Advanced Presets"
+ }
+ },
+ "2117": {
+ "inputs": {
+ "timestep": 0.05,
+ "scale": 0.025,
+ "seed": 42,
+ "vae": [
+ "1896",
+ 2
+ ]
+ },
+ "class_type": "Set VAE Decoder Noise",
+ "_meta": {
+ "title": "🅛🅣🅧 Set VAE Decoder Noise"
+ }
+ }
+ },
+ "comfy_fork_version": "develop@b6cf0e6a",
+ "workspace_info": {
+ "id": "elBQFQknIoLYTEwIloQuw"
+ },
+ "node_versions": {
+ "comfy-core": "0.3.20"
+ }
+ },
+ "version": 0.4
+}
diff --git a/example_workflows/ic_lora/man_walking.mp4 b/example_workflows/ic_lora/man_walking.mp4
new file mode 100644
index 0000000..701e4dc
--- /dev/null
+++ b/example_workflows/ic_lora/man_walking.mp4
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:346eeff236979002921588066d80fff8bd2e0cf51d34b1061aac8d7bac3554b7
+size 3604332
diff --git a/example_workflows/ic_lora/robot.png b/example_workflows/ic_lora/robot.png
new file mode 100644
index 0000000..56d515b
--- /dev/null
+++ b/example_workflows/ic_lora/robot.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fd423a6c09f33e2c1bcbc147f64502fa677b976bd7d84c3c51b87d2c4122eb03
+size 1347335
diff --git a/presets/stg_advanced_presets.json b/presets/stg_advanced_presets.json
index 2879acb..b71395e 100644
--- a/presets/stg_advanced_presets.json
+++ b/presets/stg_advanced_presets.json
@@ -32,6 +32,16 @@
"stg_rescale_values": [1, 1, 1, 1, 1, 1],
"stg_layers_indices": [[42], [42], [42], [42], [42], [42]]
},
+ {
+ "name": "13b Distilled",
+ "skip_steps_sigma_threshold": 0.997,
+ "cfg_star_rescale": true,
+ "sigmas": [1.0],
+ "cfg_values": [1],
+ "stg_scale_values": [0],
+ "stg_rescale_values": [1],
+ "stg_layers_indices": [[25]]
+ },
{
"name": "2b",
"skip_steps_sigma_threshold": 0.997,
diff --git a/pyproject.toml b/pyproject.toml
index 1749530..18e21eb 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -20,7 +20,7 @@ dependencies = [
internal = [
"ltx-video@git+https://github.com/Lightricks/[email protected]",
"av>=10.0.0",
- "q8-kernels==0.0.6"
+ "q8-kernels~=0.1.0"
]
dev = [
"pre-commit>=4.0.1",
diff --git a/recurrent_sampler.py b/recurrent_sampler.py
deleted file mode 100644
index 450301d..0000000
--- a/recurrent_sampler.py
+++ /dev/null
@@ -1,254 +0,0 @@
-import torch
-from comfy_extras.nodes_custom_sampler import CFGGuider, SamplerCustomAdvanced
-from comfy_extras.nodes_lt import LTXVAddGuide, LTXVCropGuides
-
-from .latents import LTXVAddLatents, LTXVSelectLatents
-from .nodes_registry import comfy_node
-from .tricks import AddLatentGuideNode
-
-
-@comfy_node(description="Linear transition with overlap")
-class LinearOverlapLatentTransition:
- @classmethod
- def INPUT_TYPES(s):
- return {
- "required": {
- "samples1": ("LATENT",),
- "samples2": ("LATENT",),
- "overlap": ("INT", {"default": 1, "min": 1, "max": 256}),
- },
- "optional": {
- "axis": ("INT", {"default": 0}),
- },
- }
-
- RETURN_TYPES = ("LATENT",)
- FUNCTION = "process"
-
- CATEGORY = "Lightricks/latent"
-
- def get_subbatch(self, samples):
- s = samples.copy()
- samples = s["samples"]
- return samples
-
- def process(self, samples1, samples2, overlap, axis=0):
- samples1 = self.get_subbatch(samples1)
- samples2 = self.get_subbatch(samples2)
-
- # Create transition coefficients
- alpha = torch.linspace(1, 0, overlap + 2)[1:-1].to(samples1.device)
-
- # Create shape for broadcasting based on the axis
- shape = [1] * samples1.dim()
- shape[axis] = alpha.size(0)
- alpha = alpha.reshape(shape)
-
- # Create slices for the overlap regions
- slice_all = [slice(None)] * samples1.dim()
- slice_overlap1 = slice_all.copy()
- slice_overlap1[axis] = slice(-overlap, None)
- slice_overlap2 = slice_all.copy()
- slice_overlap2[axis] = slice(0, overlap)
- slice_rest1 = slice_all.copy()
- slice_rest1[axis] = slice(None, -overlap)
- slice_rest2 = slice_all.copy()
- slice_rest2[axis] = slice(overlap, None)
-
- # Combine samples
- parts = [
- samples1[tuple(slice_rest1)],
- alpha * samples1[tuple(slice_overlap1)]
- + (1 - alpha) * samples2[tuple(slice_overlap2)],
- samples2[tuple(slice_rest2)],
- ]
-
- combined_samples = torch.cat(parts, dim=axis)
- combined_batch_index = torch.arange(0, combined_samples.shape[0])
-
- return (
- {
- "samples": combined_samples,
- "batch_index": combined_batch_index,
- },
- )
-
-
-@comfy_node(
- name="LTXVRecurrentKSampler",
-)
-class LTXVRecurrentKSampler:
-
- @classmethod
- def INPUT_TYPES(s):
- return {
- "required": {
- "model": ("MODEL",),
- "vae": ("VAE",),
- "noise": ("NOISE",),
- "sampler": ("SAMPLER",),
- "sigmas": ("SIGMAS",),
- "latents": ("LATENT",),
- "chunk_sizes": ("STRING", {"default": "3", "multiline": False}),
- "overlaps": ("STRING", {"default": "1", "multiline": False}),
- "positive": ("CONDITIONING",),
- "negative": ("CONDITIONING",),
- "input_image": ("IMAGE",),
- "linear_blend_latents": ("BOOLEAN", {"default": True}),
- "conditioning_strength": (
- "FLOAT",
- {"default": 1.0, "min": 0.0, "max": 2.0, "step": 0.01},
- ),
- },
- "optional": {
- "guider": ("GUIDER",),
- },
- }
-
- RETURN_TYPES = (
- "LATENT",
- "LATENT",
- )
- RETURN_NAMES = (
- "output",
- "denoised_output",
- )
-
- FUNCTION = "sample"
-
- CATEGORY = "sampling"
-
- def sample(
- self,
- model,
- vae,
- noise,
- sampler,
- sigmas,
- latents,
- chunk_sizes,
- overlaps,
- positive,
- negative,
- input_image,
- linear_blend_latents,
- conditioning_strength,
- guider=None,
- ):
- select_latents = LTXVSelectLatents().select_latents
- add_latent_guide = AddLatentGuideNode().generate
- add_latents = LTXVAddLatents().add_latents
- positive_orig = positive.copy()
- negative_orig = negative.copy()
-
- # Parse chunk sizes and overlaps from strings
- chunk_sizes = [int(x) for x in chunk_sizes.split(",")]
- overlaps = [int(x) for x in overlaps.split(",")]
-
- # Extend lists if shorter than number of sigma steps
- n_steps = len(sigmas) - 1
- if len(chunk_sizes) < n_steps:
- chunk_sizes.extend([chunk_sizes[-1]] * (n_steps - len(chunk_sizes)))
- if len(overlaps) < n_steps:
- overlaps.extend([overlaps[-1]] * (n_steps - len(overlaps)))
-
- # Initialize working latents
- current_latents = latents.copy()
- t_latents = None
- # Loop through sigma pairs for progressive denoising
- for i in range(n_steps):
- current_sigmas = sigmas[i : i + 2]
- current_chunk_size = chunk_sizes[i]
- current_overlap = overlaps[i]
-
- print(f"\nProcessing sigma step {i} with sigmas {current_sigmas}")
- print(
- f"Using chunk size {current_chunk_size} and overlap {current_overlap}"
- )
-
- # Calculate valid chunk starts to ensure the last chunk isn't shorter than the overlap
- total_frames = current_latents["samples"].shape[2]
- chunk_stride = current_chunk_size - current_overlap
- valid_chunk_starts = list(
- range(0, total_frames - current_overlap, chunk_stride)
- )
-
- # If the last chunk would be too short, remove the last start position
- if (
- total_frames > chunk_stride
- and (total_frames - valid_chunk_starts[-1]) < current_chunk_size
- ):
- print(
- "last chunk is too short, it will only be of size",
- total_frames - valid_chunk_starts[-1],
- "frames",
- )
-
- # Process each chunk for current sigma pair
- for i_chunk, chunk_start in enumerate(valid_chunk_starts):
- (latents_chunk,) = select_latents(
- current_latents, chunk_start, chunk_start + current_chunk_size - 1
- )
- print(f"Processing chunk {i_chunk} starting at frame {chunk_start}")
-
- if i_chunk == 0:
- positive, negative, latents_chunk = LTXVAddGuide().generate(
- positive_orig,
- negative_orig,
- vae,
- latents_chunk,
- input_image,
- 0,
- 0.75,
- )
- else:
- (cond_latent,) = select_latents(t_latents, -current_overlap, -1)
- model, latents_chunk = add_latent_guide(
- model, latents_chunk, cond_latent, 0, conditioning_strength
- )
-
- if guider is None:
- (guider_obj,) = CFGGuider().get_guider(
- model, positive, negative, 1.0
- )
- else:
- guider_obj = guider
- (_, denoised_latents) = SamplerCustomAdvanced().sample(
- noise, guider_obj, sampler, current_sigmas, latents_chunk
- )
- (positive, negative, denoised_latents) = LTXVCropGuides().crop(
- positive, negative, denoised_latents
- )
-
- if i_chunk == 0:
- t_latents = denoised_latents
- else:
- if linear_blend_latents and current_overlap > 1:
- # the first output latent is the result of a 1:8 latent
- # reinterpreted as a 1:1 latent, so we ignore it
- (denoised_latents_drop_first,) = select_latents(
- denoised_latents, 1, -1
- )
- (t_latents,) = LinearOverlapLatentTransition().process(
- t_latents,
- denoised_latents_drop_first,
- current_overlap - 1,
- axis=2,
- )
- else:
- (truncated_denoised_latents,) = select_latents(
- denoised_latents, current_overlap, -1
- )
- (t_latents,) = add_latents(
- t_latents, truncated_denoised_latents
- )
-
- print(
- f"Completed chunk {i_chunk}, current output shape: {t_latents['samples'].shape}"
- )
-
- # Update current_latents for next sigma step
- current_latents = t_latents.copy()
- print(f"Completed sigma step {i}")
-
- return t_latents, t_latents
diff --git a/tiled_sampler.py b/tiled_sampler.py
index dd77762..c97847a 100644
--- a/tiled_sampler.py
+++ b/tiled_sampler.py
@@ -5,6 +5,7 @@ import torch
from comfy_extras.nodes_custom_sampler import SamplerCustomAdvanced
from comfy_extras.nodes_lt import LTXVAddGuide, LTXVCropGuides
+from .easy_samplers import LTXVBaseSampler, LTXVExtendSampler, LTXVInContextSampler
from .latents import LTXVAddLatentGuide, LTXVSelectLatents
from .nodes_registry import comfy_node
@@ -96,7 +97,6 @@ class LTXVTiledSampler:
"bicubic",
crop=crop,
).movedim(1, -1)
- print("cond_images shape after resize", cond_images.shape)
img_batch, img_height, img_width, img_channels = cond_images.shape
else:
cond_images = None
@@ -274,13 +274,11 @@ class LTXVTiledSampler:
# Clean up guides if image conditioning was used
if cond_images is not None:
- print("before guide crop", denoised_tile["samples"].shape)
tile_positive, tile_negative, denoised_tile = LTXVCropGuides().crop(
positive=tile_positive,
negative=tile_negative,
latent=denoised_tile,
)
- print("after guide crop", denoised_tile["samples"].shape)
# Create weight mask for this tile
tile_weights = torch.ones_like(tile)
@@ -317,3 +315,296 @@ class LTXVTiledSampler:
denoised_output = denoised_output / (weights + 1e-8)
return {"samples": output}, {"samples": denoised_output}
+
+
+@comfy_node(
+ name="LTXVLoopingSampler",
+)
+class LTXVLoopingSampler:
+
+ @classmethod
+ def INPUT_TYPES(s):
+ return {
+ "required": {
+ "model": ("MODEL", {"tooltip": "The diffusion model to use."}),
+ "vae": ("VAE", {"tooltip": "The VAE to use."}),
+ "noise": ("NOISE", {"tooltip": "The noise to use."}),
+ "sampler": ("SAMPLER", {"tooltip": "The sampler to use."}),
+ "sigmas": ("SIGMAS", {"tooltip": "The sigmas to use."}),
+ "guider": (
+ "GUIDER",
+ {"tooltip": "The guider to use, must be a STGGuiderAdvanced."},
+ ),
+ "latents": (
+ "LATENT",
+ {
+ "tooltip": "The latents to use for creating the long video, they can be guiding latents or empty latents when no guidance is used."
+ },
+ ),
+ "use_latents_to_guide": (
+ "BOOLEAN",
+ {
+ "default": True,
+ "tooltip": "Whether to use the latents to guide the sampling, such as with IC-LoRAs. If False, just the shape of the latents will be used.",
+ },
+ ),
+ "guiding_strength": (
+ "FLOAT",
+ {
+ "default": 1.0,
+ "min": 0.0,
+ "max": 1.0,
+ "step": 0.01,
+ "tooltip": "The strength of the conditioning on guiding latents, when use_latents_to_guide is True.",
+ },
+ ),
+ "temporal_tile_size": (
+ "INT",
+ {
+ "default": 80,
+ "min": 24,
+ "max": 1000,
+ "step": 8,
+ "tooltip": "The size of the temporal tile to use for the sampling, in pixel frames, in addition to the overlapping region.",
+ },
+ ),
+ "overlap": (
+ "INT",
+ {
+ "default": 24,
+ "min": 16,
+ "max": 80,
+ "step": 8,
+ "tooltip": "The overlap between the temporal tiles, in pixel frames.",
+ },
+ ),
+ "overlap_cond_strength": (
+ "FLOAT",
+ {
+ "default": 0.5,
+ "min": 0.0,
+ "max": 1.0,
+ "step": 0.01,
+ "tooltip": "The strength of the conditioning on the latents from the previous temporal tile.",
+ },
+ ),
+ },
+ "optional": {
+ "optional_cond_image": (
+ "IMAGE",
+ {
+ "tooltip": "The image to use for conditioning the first frame in the video (i2v setup). If not provided, the first frame will be unconditioned (t2v setup). The image will be resized to the size of the first frame."
+ },
+ ),
+ "adain_factor": (
+ "FLOAT",
+ {
+ "default": 0.0,
+ "min": 0.0,
+ "max": 1.0,
+ "step": 0.01,
+ "tooltip": "The strength of the AdaIn operation used to fix the statistics of each new generated temporal tile, to prevent accumulated oversaturation.",
+ },
+ ),
+ "optional_positive_conditionings": (
+ "CONDITIONING",
+ {
+ "tooltip": "Optional way to provide changing positive prompts, one per temporal tile, using the MultiPromptProvider node."
+ },
+ ),
+ "optional_negative_index_latents": (
+ "LATENT",
+ {
+ "tooltip": "Special optional latents to condition on a negative index before each new temporal tile as a way to provide long term context during video generation."
+ },
+ ),
+ "optional_negative_index": (
+ "INT",
+ {
+ "default": -1,
+ "min": -1000,
+ "max": 1000,
+ "tooltip": "The index in which to condition using the optional_negative_index_latents.",
+ },
+ ),
+ "optional_negative_index_strength": (
+ "FLOAT",
+ {
+ "default": 1.0,
+ "min": 0.0,
+ "max": 1.0,
+ "step": 0.01,
+ "tooltip": "The strength of the conditioning with the optional_negative_index_latents.",
+ },
+ ),
+ },
+ }
+
+ RETURN_TYPES = ("LATENT",)
+ RETURN_NAMES = ("denoised_output",)
+
+ FUNCTION = "sample"
+ CATEGORY = "sampling"
+
+ def sample(
+ self,
+ model,
+ vae,
+ noise,
+ sampler,
+ sigmas,
+ guider,
+ latents,
+ use_latents_to_guide,
+ guiding_strength,
+ adain_factor,
+ temporal_tile_size,
+ overlap,
+ overlap_cond_strength,
+ optional_cond_image=None,
+ optional_negative_index_latents=None,
+ optional_negative_index=-1,
+ optional_negative_index_strength=1.0,
+ optional_positive_conditionings=None,
+ ):
+ time_scale_factor, width_scale_factor, height_scale_factor = (
+ vae.downscale_index_formula
+ )
+ temporal_tile_size = temporal_tile_size // time_scale_factor
+ overlap = overlap // time_scale_factor
+ first_seed = noise.seed
+ chunk_index = 0
+ for start_index, end_index in zip(
+ range(
+ 0,
+ latents["samples"].shape[2] + temporal_tile_size - overlap,
+ temporal_tile_size - overlap,
+ ),
+ range(
+ temporal_tile_size,
+ latents["samples"].shape[2] + temporal_tile_size - overlap,
+ temporal_tile_size - overlap,
+ ),
+ ):
+ guiding_latent_chunk = LTXVSelectLatents().select_latents(
+ latents,
+ start_index,
+ min(end_index - 1, latents["samples"].shape[2] - 1),
+ )[0]
+ noise.seed = first_seed + start_index
+
+ # Handle optional positive conditionings
+ if optional_positive_conditionings is not None:
+ new_guider = copy.copy(guider)
+ positive, negative = guider.raw_conds
+ # Use the conditioning at chunk_index, or the last one if we've run out
+ conditioning_index = min(
+ chunk_index, len(optional_positive_conditionings) - 1
+ )
+ new_guider.set_conds(
+ optional_positive_conditionings[conditioning_index], negative
+ )
+ new_guider.raw_conds = (
+ optional_positive_conditionings[conditioning_index],
+ negative,
+ )
+ else:
+ new_guider = guider
+
+ if start_index == 0:
+ if use_latents_to_guide:
+ out_latents = LTXVInContextSampler().sample(
+ vae=vae,
+ guider=new_guider,
+ sampler=sampler,
+ sigmas=sigmas,
+ noise=noise,
+ guiding_latents=guiding_latent_chunk,
+ optional_cond_image=optional_cond_image,
+ num_frames=-1,
+ )[0]
+ else:
+ out_latents = LTXVBaseSampler().sample(
+ model=model,
+ vae=vae,
+ noise=noise,
+ sampler=sampler,
+ sigmas=sigmas,
+ guider=new_guider,
+ num_frames=(
+ min(temporal_tile_size, latents["samples"].shape[2]) - 1
+ )
+ * time_scale_factor
+ + 1,
+ width=latents["samples"].shape[4] * width_scale_factor,
+ height=latents["samples"].shape[3] * height_scale_factor,
+ optional_cond_images=optional_cond_image,
+ optional_cond_indices="0",
+ strength=overlap_cond_strength,
+ )[0]
+ first_out_latents = copy.deepcopy(out_latents)
+ else:
+ out_latents = LTXVExtendSampler().sample(
+ model=model,
+ vae=vae,
+ sampler=sampler,
+ sigmas=sigmas,
+ noise=noise,
+ latents=out_latents,
+ num_new_frames=(guiding_latent_chunk["samples"].shape[2] - overlap)
+ * time_scale_factor,
+ frame_overlap=overlap * time_scale_factor,
+ guider=new_guider,
+ strength=overlap_cond_strength,
+ guiding_strength=guiding_strength,
+ optional_guiding_latents=(
+ guiding_latent_chunk if use_latents_to_guide else None
+ ),
+ optional_reference_latents=first_out_latents,
+ adain_factor=adain_factor,
+ optional_negative_index_latents=optional_negative_index_latents,
+ optional_negative_index=optional_negative_index,
+ optional_negative_index_strength=optional_negative_index_strength,
+ )[0]
+
+ chunk_index += 1
+
+ noise.seed = first_seed
+ return (out_latents,)
+
+
+@comfy_node(
+ name="MultiPromptProvider",
+)
+class MultiPromptProvider:
+
+ @classmethod
+ def INPUT_TYPES(s):
+ return {
+ "required": {
+ "prompts": (
+ "STRING",
+ {
+ "multiline": True,
+ "dynamicPrompts": True,
+ "tooltip": "Prompts to encode, one per line. Each prompt will be encoded separately. Each prompt will be used in one temporal_tile in LTXVLoopingSampler.",
+ },
+ ),
+ "clip": ("CLIP", {"tooltip": "CLIP model to encode the prompts."}),
+ },
+ }
+
+ RETURN_TYPES = ("CONDITIONING",)
+ RETURN_NAMES = ("conditionings",)
+
+ FUNCTION = "get_prompt_list"
+ CATEGORY = "prompt"
+
+ def get_prompt_list(self, prompts, clip):
+ prompt_list = prompts.split("\n")
+ prompt_list = [prompt.strip() for prompt in prompt_list]
+ encoded_prompt_list = [
+ clip.encode_from_tokens_scheduled(clip.tokenize(prompt))
+ for prompt in prompt_list
+ ]
+ return (encoded_prompt_list,)
diff --git a/utiltily_nodes.py b/utiltily_nodes.py
new file mode 100644
index 0000000..6781199
--- /dev/null
+++ b/utiltily_nodes.py
@@ -0,0 +1,19 @@
+from .nodes_registry import comfy_node
+
+
+@comfy_node(description="Image to CPU")
+class ImageToCPU:
+ @classmethod
+ def INPUT_TYPES(cls):
+ return {
+ "required": {
+ "image": ("IMAGE",),
+ },
+ }
+
+ RETURN_TYPES = ("IMAGE",)
+ FUNCTION = "run"
+ CATEGORY = "utility"
+
+ def run(self, image):
+ return (image.cpu(),)