Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates dynamic selection between latent inputs based on boolean condition for AI art generation workflows.
The Latent Input Switch node is designed to facilitate the selection between two latent inputs based on a boolean condition. This node is particularly useful in scenarios where you need to dynamically choose between different latent representations during the execution of your AI art generation workflow. By leveraging this node, you can create more flexible and adaptive pipelines that respond to varying conditions or parameters, enhancing the creative possibilities and control over the generated outputs.
This parameter represents the first latent input. It is one of the two possible latent representations that the node can output based on the boolean condition. The latent input is typically a tensor that contains encoded information from a previous stage in the AI art generation process.
This parameter represents the second latent input. Similar to latent_a
, it is a latent representation that the node can output depending on the boolean condition. This allows for an alternative latent path to be selected dynamically.
This parameter is a boolean condition that determines which latent input will be selected. If the boolean value is True
, the node will output latent_a
; if False
, it will output latent_b
. This parameter is crucial for controlling the flow of data through the node based on specific conditions or logic in your workflow.
The output of this node is a single latent representation, which will be either latent_a
or latent_b
depending on the value of the boolean parameter. This output can then be used in subsequent nodes or processes within your AI art generation pipeline.
latent_a
and latent_b
are valid latent tensors generated from previous nodes or processes.True
or False
) for the boolean parameter to control the selection of the latent input.latent_a
and latent_b
have different dimensions or shapes.© Copyright 2024 RunComfy. All Rights Reserved.