Skip to main content
The LatentCutToBatch node splits a latent representation along a chosen dimension (time, width, or height) into slices of a specified size and stacks them into a new batch. Each slice becomes a separate item in the batch, so different parts of a latent sample can be processed independently.

Inputs

Note: The "t" option only takes effect when the latent includes a temporal dimension. If the chosen dimension maps to the batch or channel position, or does not exist (for example, selecting "t" on a latent without frames), the node returns the input unchanged. If slice_size is larger than the size of the chosen dimension, the entire dimension is used as a single slice. When the dimension size is not evenly divisible by slice_size, the leftover portion at the end is discarded. The output batch size is the input batch size multiplied by the number of slices, and the sliced dimension itself is reduced to slice_size.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 873c9bc8391971887f1ab636c086cab86f5504a9c653bc80b54120ee53980bdf