Visit ComfyUI Online for ready-to-use ComfyUI environment
Blend latent samples for smooth transitions between styles, offering creative flexibility with various blend modes for artistic effects.
LatentBlend is a powerful node designed to blend two sets of latent samples, allowing you to create smooth transitions and combinations between different latent representations. This node is particularly useful for AI artists who want to merge different styles or features from two distinct latent spaces. By adjusting the blend factor, you can control the degree to which each set of samples influences the final output, providing a high level of creative flexibility. The node supports various blend modes, such as normal, multiply, screen, overlay, soft light, and difference, each offering unique ways to combine the latent samples. This functionality enables you to experiment with different artistic effects and achieve the desired visual outcome.
samples1
is the first set of latent samples that you want to blend. This parameter represents one of the two sources of latent data that will be combined. The latent samples are typically high-dimensional representations of images or other data, and they serve as the foundation for the blending process.
samples2
is the second set of latent samples that you want to blend. Similar to samples1
, this parameter provides the other source of latent data for the blending operation. The shape of samples2
should ideally match that of samples1
to ensure a smooth blending process. If the shapes do not match, the node will attempt to resize samples2
to match samples1
.
blend_factor
is a floating-point value that determines the proportion of each set of samples in the final blended output. The value ranges from 0 to 1, with a default of 0.5. A blend factor of 0 means the output will be entirely from samples2
, while a blend factor of 1 means the output will be entirely from samples1
. Intermediate values will produce a mix of both sets of samples, with the blend factor controlling the relative influence of each.
The output parameter is a set of blended latent samples, represented as LATENT
. This output contains the combined information from both samples1
and samples2
, adjusted according to the specified blend factor and blend mode. The resulting latent samples can be used for further processing or directly converted into images or other forms of data, depending on your creative goals.
samples1
and samples2
are compatible or allow the node to resize samples2
to match samples1
for a smoother blending process.<mode>
samples1
and samples2
are incompatible and cannot be resized to match each other.samples1
and samples2
are compatible. If necessary, preprocess the samples to ensure they have matching dimensions before blending.© Copyright 2024 RunComfy. All Rights Reserved.