conditioning/ltxvgenerated

LTXV Add Guides From Batch(LTXVAddGuidesFromBatch)

Adds multiple guide images from a batch to the latent at corresponding frame indices. Non-black images in the batch are used as guides.

LTXV Add Guides From Batch

positive
negative
vae
latent
images
positive
negative
latent
strength
1.00
KJNodes

Description

Adds multiple guide images from a batch to the latent at corresponding frame indices. Non-black (i.e., non-zero) images in the batch are used as guides. This node is part of the LTXV conditioning pipeline, enabling fine-grained control over per‑frame appearance by injecting reference images directly into the latent space.

Inputs

NameTypeRequiredDescription
positiveCONDITIONINGYesPositive conditioning tensor (e.g., from a CLIP text encoder or other conditioning setup).
negativeCONDITIONINGYesNegative conditioning tensor.
vaeVAEYesVAE model used to encode guide images into the latent space.
latentLATENTYesInitial latent tensor (e.g., from an empty latent or previous LTXV stage).
imagesIMAGEYesBatch of images. Non‑black images in this batch are treated as guides and applied to corresponding frame indices. Black (all‑zero) images are ignored.
strengthFLOAT (0‑10)YesStrength factor applied to all guide images. Default: 1.0. Higher values increase the influence of the guides.

Outputs

NameTypeDescription
positiveCONDITIONINGUpdated positive conditioning with guide information injected.
negativeCONDITIONINGUpdated negative conditioning with guide information injected.
latentLATENTModified latent tensor containing guide‑injected per‑frame adjustments.

Usage Notes

  • The node expects the images batch to have the same number of frames as the latent tensor (or at least up to the number of frames in the latent). Each non‑black image in the batch is used as a guide for the corresponding frame index.
  • A “black” image is defined as one where all pixel channels are zero. This allows you to include “placeholder” images in the batch that should not contribute any guide signal.
  • The strength parameter scales the encoded contribution of all guides uniformly. To vary strength per guide, you can pre‑process the images (e.g., blend with black) before passing them to this node.
  • This node is intended for LTXV‑based workflows where precise per‑frame control via reference images is needed, such as frame‑consistent video generation or stylized animation.
  • All three outputs must be connected to continue the conditioning pipeline (typically to a sampler or further LTXV nodes). The updated conditioning tensors carry the guide information, while the latent contains the spatially modified representation.

Comments

Sign in with GitHub to join the discussion.

Loading comments…
LTXV Add Guides From Batch (LTXVAddGuidesFromBatch) - ComfyUI-KJNodes | ComfyUI Wiki