ComfyUI > Nodes > CRT-Nodes > Enable Latent (CRT)

ComfyUI Node: Enable Latent (CRT)

Class Name

EnableLatent

Category
CRT/Latent
Author
CRT (Account age: 1707days)
Extension
CRT-Nodes
Latest Updated
2026-03-16
Github Stars
0.1K

How to Install CRT-Nodes

Install this extension via the ComfyUI Manager by searching for CRT-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter CRT-Nodes 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

Enable Latent (CRT) Description

Controls latent data flow in computational graphs based on boolean conditions for efficiency.

Enable Latent (CRT):

The EnableLatent node is designed to manage the flow of latent data within a computational graph, specifically in scenarios where conditional execution is required. Its primary purpose is to control whether latent data should be processed or bypassed based on a boolean condition. This node is particularly useful in complex workflows where certain operations on latent data need to be selectively enabled or disabled. By providing a mechanism to conditionally pass through or halt the processing of latent data, EnableLatent helps optimize computational resources and streamline the execution of tasks that depend on the presence or absence of specific conditions. This node is essential for AI artists who need to manage the execution flow of their models efficiently, ensuring that unnecessary computations are avoided when certain conditions are not met.

Enable Latent (CRT) Input Parameters:

latent

The latent parameter represents the input data that is subject to conditional processing. It can be either a dictionary containing a key "samples" with a torch.Tensor value or a raw torch.Tensor. This parameter is crucial as it holds the data that may or may not be processed based on the enable condition. The format of the latent data is important, as it must either be a dictionary with the specified structure or a tensor, ensuring compatibility with the node's processing logic.

enable

The enable parameter is a boolean flag that determines whether the latent data should be processed or bypassed. By default, this parameter is set to True, meaning that the latent data will be processed unless explicitly disabled. When set to False, the node will return None, effectively halting any further processing of the latent data. This parameter is essential for controlling the execution flow and optimizing resource usage by preventing unnecessary computations when certain conditions are not met.

Enable Latent (CRT) Output Parameters:

LATENT

The LATENT output parameter represents the processed latent data that is passed through when the enable condition is True. If the latent input is valid and the enable flag is set, the node will output the latent data in the same format it was received, either as a dictionary with a "samples" key or as a tensor. This output is crucial for downstream nodes that rely on the processed latent data for further operations. If the enable condition is False or the latent input is invalid, the output will be None, indicating that no data is available for further processing.

Enable Latent (CRT) Usage Tips:

  • Ensure that the latent input is in the correct format, either as a dictionary with a "samples" key containing a torch.Tensor or as a raw torch.Tensor, to avoid processing errors.
  • Use the enable parameter strategically to control the execution flow in your computational graph, enabling or disabling processing based on specific conditions or requirements.

Enable Latent (CRT) Common Errors and Solutions:

Invalid latent input type

  • Explanation: This error occurs when the latent input is not in the expected format, either as a dictionary with a "samples" key containing a torch.Tensor or as a raw torch.Tensor.
  • Solution: Ensure that the latent input is correctly formatted before passing it to the node. Check that it is either a dictionary with the required structure or a tensor.

enable is False. Returning None.

  • Explanation: This message indicates that the enable parameter is set to False, causing the node to bypass processing and return None.
  • Solution: If processing is desired, set the enable parameter to True. If bypassing is intentional, no action is needed.

Enable Latent (CRT) Related Nodes

Go back to the extension to check out more related nodes.
CRT-Nodes
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.

Enable Latent (CRT)