ComfyUI > Nodes > WAS Node Suite > CLIP Input Switch

ComfyUI Node: CLIP Input Switch

Class Name

CLIP Input Switch

Category
WAS Suite/Logic
Author
WASasquatch (Account age: 4688days)
Extension
WAS Node Suite
Latest Updated
2024-08-25
Github Stars
1.07K

How to Install WAS Node Suite

Install this extension via the ComfyUI Manager by searching for WAS Node Suite
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WAS Node Suite 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

CLIP Input Switch Description

Facilitates dynamic selection between CLIP models based on boolean condition for AI art projects, enhancing workflow efficiency.

CLIP Input Switch:

The CLIP Input Switch node is designed to facilitate the dynamic selection between two different CLIP models based on a boolean condition. This node is particularly useful when you need to switch between different CLIP models during the execution of your AI art projects, allowing for greater flexibility and control over the model selection process. By using this node, you can streamline workflows that require conditional logic to determine which CLIP model to use, enhancing the efficiency and adaptability of your creative processes.

CLIP Input Switch Input Parameters:

clip_a

This parameter represents the first CLIP model input. It is one of the two CLIP models that the node can switch between based on the boolean condition. The CLIP model provided here will be selected if the boolean parameter is set to true.

clip_b

This parameter represents the second CLIP model input. It is the alternative CLIP model that the node can switch to if the boolean condition is not met. The CLIP model provided here will be selected if the boolean parameter is set to false.

boolean

This boolean parameter determines which of the two CLIP models (clip_a or clip_b) will be selected. If set to true, the node will output clip_a; if set to false, the node will output clip_b. This parameter allows for dynamic switching based on conditional logic within your workflow.

CLIP Input Switch Output Parameters:

CLIP

The output of this node is a single CLIP model, which is either clip_a or clip_b depending on the value of the boolean parameter. This output can then be used in subsequent nodes or processes within your AI art project, providing the selected CLIP model for further operations.

CLIP Input Switch Usage Tips:

  • Use the boolean parameter to dynamically switch between different CLIP models based on specific conditions or triggers in your workflow.
  • Ensure that both clip_a and clip_b are properly configured and loaded CLIP models to avoid any interruptions in the node's execution.
  • This node can be particularly useful in scenarios where you need to compare the outputs of different CLIP models or when you want to apply different models based on varying input conditions.

CLIP Input Switch Common Errors and Solutions:

Invalid CLIP model input

  • Explanation: This error occurs when one or both of the CLIP model inputs (clip_a or clip_b) are not valid or not properly loaded.
  • Solution: Verify that both clip_a and clip_b are correctly configured and loaded CLIP models. Ensure that the paths to the models are correct and that the models are accessible.

Boolean parameter not set

  • Explanation: This error occurs when the boolean parameter is not provided or is set to an invalid value.
  • Solution: Ensure that the boolean parameter is set to either true or false. This parameter is required for the node to determine which CLIP model to output.

Output CLIP model is None

  • Explanation: This error occurs when the node fails to output a valid CLIP model, possibly due to issues with the input models or the boolean parameter.
  • Solution: Check the configurations of clip_a and clip_b, and ensure that the boolean parameter is correctly set. Verify that the input models are not None and are properly loaded.

CLIP Input Switch Related Nodes

Go back to the extension to check out more related nodes.
WAS Node Suite
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.