Visit ComfyUI Online for ready-to-use ComfyUI environment
Reorganize latent representations into consistent batches for easier processing in AI art tasks.
The RebatchLatents node is designed to reorganize a collection of latent representations into new batches of a specified size. This is particularly useful when working with large datasets or when you need to process latents in smaller, more manageable chunks. The node ensures that the dimensions of the latents are consistent within each batch, and it handles any necessary adjustments to noise masks and batch indices. By using this node, you can streamline the processing of latent data, making it easier to manage and manipulate for various AI art tasks.
This parameter represents the collection of latent representations that you want to rebatch. Each latent should be a dictionary containing at least the samples
key, and optionally noise_mask
and batch_index
keys. The latents are the core data that will be reorganized into new batches.
This parameter specifies the size of each new batch. It determines how many latent samples will be included in each batch. The batch size must be an integer between 1 and 4096, with a default value of 1. Adjusting the batch size can impact the efficiency and performance of your processing pipeline, so choose a size that best fits your computational resources and task requirements.
The output is a list of dictionaries, each containing rebatch latent samples. Each dictionary includes the samples
key and may include noise_mask
and batch_index
keys if they were present in the input latents. The output latents are reorganized into batches of the specified size, making them ready for further processing or analysis.
samples
, noise_mask
, batch_index
).© Copyright 2024 RunComfy. All Rights Reserved.