Nodes/ComfyUI-TJ_NODE_STUDIO_ONE/Clean Latent Slice (TJ 2.5)
ComfyUI Node

Clean Latent Slice (TJ 2.5)

Safely slices a video latent starting from an offset index for a specific length. Uses torch.narrow to bypass PyTorch NestedTensor slicing bugs.

By designloves2·Created 4 months ago·Updated 3 days ago· 35
Clean Latent Slice (TJ 2.5)
  • latent
  • latent
◄start0►
◄length1►
CategoryWhatDreamsCost CS 2.5

Inputs (3)

NameTypeDefaultDescription
latentLATENT—
startINT00–100000The starting frame index to slice from (plug 'latent_start_index' here).
lengthINT11–100000The number of frames to keep (plug 'clean_latent_frames' here).

Outputs (1)

NameTypeDescription
latentLATENT—