Visit ComfyUI Online for ready-to-use ComfyUI environment
Combines latent samples into a single batch for processing and analysis, maintaining integrity and handling spatial differences seamlessly.
The LatentBatch
node is designed to combine two sets of latent samples into a single batch. This is particularly useful in scenarios where you need to merge different latent representations for further processing or analysis. By concatenating the samples along the batch dimension, this node ensures that the combined output maintains the integrity and structure of the original latent data. This functionality is essential for tasks that require the aggregation of multiple latent vectors, such as in generative models or complex data transformations. The node also handles differences in the spatial dimensions of the input samples by upscaling them to match, ensuring a seamless and consistent output.
samples1
is the first set of latent samples that you want to combine. This parameter is crucial as it forms one part of the input data that will be merged. The latent samples should be in the format expected by the node, typically a tensor with specific dimensions representing the latent space. The integrity and quality of these samples directly impact the final output.
samples2
is the second set of latent samples to be combined with samples1
. Similar to samples1
, this parameter should also be a tensor representing latent data. If the spatial dimensions of samples2
do not match those of samples1
, the node will automatically upscale samples2
to ensure compatibility. This ensures that the concatenation process is smooth and the resulting batch is coherent.
The output is a single batch of latent samples, represented as a tensor. This combined batch includes all the samples from both samples1
and samples2
, concatenated along the batch dimension. The output retains the structure and properties of the input samples, making it suitable for further processing in your AI workflows. Additionally, the output includes an updated batch_index
that reflects the indices of the combined samples, ensuring traceability and consistency.
samples1
and samples2
are compatible in terms of their data type and general structure to avoid unexpected results.samples1
and samples2
are incompatible and cannot be upscaled to match.batch_index
is not properly updated or included in the output.batch_index
or that the node correctly generates one. If necessary, manually check and update the batch_index
in your input data.© Copyright 2024 RunComfy. All Rights Reserved.