Visit ComfyUI Online for ready-to-use ComfyUI environment
Combines latent samples into a single batch for seamless integration in AI art projects.
The Latent Batch 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. The primary goal of this node is to facilitate the seamless integration of multiple latent samples, making it easier to handle and manipulate large sets of latent data in your AI art projects.
samples1
is the first set of latent samples that you want to combine. This parameter expects a latent data type, which typically contains multi-dimensional arrays representing the latent space of your data. The shape and structure of these samples are crucial as they need to be compatible with the second set of samples for successful concatenation.
samples2
is the second set of latent samples to be combined with samples1
. Similar to samples1
, this parameter also expects a latent data type. If the dimensions of samples2
do not match those of samples1
, the node will automatically upscale samples2
to ensure compatibility, using bilinear interpolation and center alignment.
The output parameter is a single combined set of latent samples, labeled as LATENT
. This output retains the structure of the input samples but concatenates them along the batch dimension. The resulting batch includes all the samples from both samples1
and samples2
, along with an updated batch_index
that reflects the new combined batch.
samples1
and samples2
are compatible or can be made compatible through upscaling to avoid errors during concatenation.samples1
nor samples2
is provided as input to the node.samples1
and samples2
should be valid latent data types.samples1
and samples2
are incompatible and cannot be upscaled to match each other.samples
key.samples
key with the appropriate latent data.© Copyright 2024 RunComfy. All Rights Reserved.