ComfyUI > Nodes > latent-tools > LTBlendLatent

ComfyUI Node: LTBlendLatent

Class Name

LTBlendLatent

Category
LatentTools
Author
Machines-of-Disruption (Account age: 80days)
Extension
latent-tools
Latest Updated
2026-02-07
Github Stars
0.03K

How to Install latent-tools

Install this extension via the ComfyUI Manager by searching for latent-tools
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter latent-tools in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

LTBlendLatent Description

Blends two latent tensors using various modes for creative AI art manipulation and exploration.

LTBlendLatent:

The LTBlendLatent node is designed to blend two latent tensors using a variety of modes, providing a versatile tool for AI artists to manipulate and combine latent spaces creatively. This node allows you to seamlessly integrate different latent representations, offering modes such as interpolation, addition, multiplication, and more. By leveraging these blending techniques, you can achieve unique and complex results in your AI-generated art. The node's primary goal is to facilitate the exploration of latent space combinations, enabling you to experiment with different blending strategies to discover new artistic possibilities.

LTBlendLatent Input Parameters:

latent1

This parameter represents the first latent tensor to be blended. It must be a dictionary containing a key "samples" with a value of type torch.Tensor. The shape of this tensor must match that of latent2 to ensure a successful blend. This parameter is crucial as it serves as one of the two primary inputs for the blending process.

latent2

Similar to latent1, this parameter is the second latent tensor involved in the blending operation. It also needs to be a dictionary with a "samples" key pointing to a torch.Tensor. The tensor's shape must match that of latent1. This parameter is essential for providing the second set of latent data to be combined with latent1.

mode

This parameter determines the blending mode to be used. Options include "interpolate", "add", "multiply", "abs_max", "abs_min", "max", "min", and "sample". Each mode offers a different method of combining the latent tensors, affecting the final output in unique ways. For instance, "interpolate" blends the tensors based on a specified ratio, while "add" simply adds them together. The choice of mode significantly impacts the artistic outcome.

ratio

The ratio parameter is a floating-point value ranging from 0.0 to 1.0, with a default of 0.5. It is primarily used in the "interpolate" and "sample" modes to control the degree of blending between the two latent tensors. A ratio closer to 0 favors latent2, while a ratio closer to 1 favors latent1. This parameter allows for fine-tuning the balance between the two inputs.

seed

This integer parameter is used to set the random seed for the "sample" mode, ensuring reproducibility in the random sampling process. It has a default value of 0 and can range up to 0xffffffffffffffff. By controlling the seed, you can achieve consistent results across different runs when using the "sample" mode.

LTBlendLatent Output Parameters:

LATENT

The output is a dictionary containing a key "samples" with a torch.Tensor as its value. This tensor represents the blended result of the two input latent tensors, processed according to the specified blending mode and parameters. The output is crucial for further processing or visualization, as it embodies the combined latent space resulting from the blending operation.

LTBlendLatent Usage Tips:

  • Experiment with different blending modes to discover unique artistic effects. Each mode offers a distinct way of combining latent spaces, so try them all to see which best suits your creative vision.
  • Use the ratio parameter to fine-tune the balance between the two latent inputs, especially in the "interpolate" and "sample" modes. Adjusting this value can significantly alter the final output, providing more control over the blending process.
  • When using the "sample" mode, set a specific seed value to ensure consistent results across multiple runs. This can be particularly useful when you want to reproduce a specific effect or outcome.

LTBlendLatent Common Errors and Solutions:

Inputs must be dictionaries

  • Explanation: This error occurs when the inputs latent1 or latent2 are not provided as dictionaries.
  • Solution: Ensure that both latent1 and latent2 are dictionaries containing a "samples" key with a torch.Tensor value.

Shape mismatch: latent1: {samples1.shape} vs latent2: {samples2.shape}

  • Explanation: This error indicates that the shapes of the tensors in latent1 and latent2 do not match.
  • Solution: Verify that the "samples" tensors in both latent1 and latent2 have the same shape before attempting to blend them.

Unknown blend mode: {mode}

  • Explanation: This error is raised when an unsupported blending mode is specified.
  • Solution: Check the mode parameter and ensure it is one of the supported options: "interpolate", "add", "multiply", "abs_max", "abs_min", "max", "min", or "sample".

LTBlendLatent Related Nodes

Go back to the extension to check out more related nodes.
latent-tools
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

LTBlendLatent