ComfyUI > Nodes > ComfyUI-JakeUpgrade > Switch Model and CLIP JKšŸ‰

ComfyUI Node: Switch Model and CLIP JKšŸ‰

Class Name

CR Switch Model and CLIP JK

Category
šŸ‰ JK/šŸ”€ Logic
Author
jakechai (Account age: 1902days)
Extension
ComfyUI-JakeUpgrade
Latest Updated
2025-05-20
Github Stars
0.08K

How to Install ComfyUI-JakeUpgrade

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

Switch Model and CLIP JKšŸ‰ Description

Automated model and CLIP switching based on boolean input for efficient AI art project workflows.

Switch Model and CLIP JKšŸ‰:

The CR Switch Model and CLIP JK node is designed to dynamically switch between two sets of models and CLIP configurations based on a boolean input. This node is particularly useful in scenarios where you need to toggle between different model and CLIP setups without manually reconfiguring your workflow. By automating the switching process, it enhances efficiency and flexibility, allowing you to seamlessly adapt to varying conditions or requirements in your AI art projects. The primary goal of this node is to provide a streamlined method for conditional model and CLIP selection, ensuring that the appropriate resources are utilized based on the specified boolean condition.

Switch Model and CLIP JKšŸ‰ Input Parameters:

boolean_value

The boolean_value parameter is a boolean input that determines which set of models and CLIP configurations will be selected. When set to True, the node will select the model_true and clip_true configurations. Conversely, when set to False, it will select the model_false and clip_false configurations. This parameter is essential for controlling the conditional logic of the node, allowing for dynamic switching based on your specific needs. The default value is False.

model_false

The model_false parameter specifies the model to be used when the boolean_value is set to False. This model will be selected and returned by the node if the condition is not met. It is crucial for defining the alternative model configuration in your workflow.

clip_false

The clip_false parameter specifies the CLIP configuration to be used when the boolean_value is set to False. Similar to model_false, this CLIP configuration will be selected and returned by the node if the condition is not met. It ensures that the appropriate CLIP setup is utilized based on the boolean condition.

model_true

The model_true parameter specifies the model to be used when the boolean_value is set to True. This model will be selected and returned by the node if the condition is met. It is essential for defining the primary model configuration in your workflow.

clip_true

The clip_true parameter specifies the CLIP configuration to be used when the boolean_value is set to True. Similar to model_true, this CLIP configuration will be selected and returned by the node if the condition is met. It ensures that the appropriate CLIP setup is utilized based on the boolean condition.

Switch Model and CLIP JKšŸ‰ Output Parameters:

MODEL

The MODEL output parameter returns the selected model based on the boolean_value input. If boolean_value is True, it returns model_true; otherwise, it returns model_false. This output is crucial for ensuring that the correct model is used in subsequent nodes or processes.

CLIP

The CLIP output parameter returns the selected CLIP configuration based on the boolean_value input. If boolean_value is True, it returns clip_true; otherwise, it returns clip_false. This output is essential for ensuring that the correct CLIP setup is used in subsequent nodes or processes.

BOOLEAN

The BOOLEAN output parameter returns the boolean_value input as is. This output can be useful for debugging or for further conditional logic in your workflow, ensuring that the boolean condition is consistently applied throughout your process.

Switch Model and CLIP JKšŸ‰ Usage Tips:

  • Use the boolean_value parameter to dynamically switch between different model and CLIP configurations based on specific conditions or triggers in your workflow.
  • Ensure that both model_false and model_true parameters are properly configured with the appropriate models to avoid unexpected results.
  • Similarly, ensure that both clip_false and clip_true parameters are correctly set up with the desired CLIP configurations to maintain consistency in your outputs.

Switch Model and CLIP JKšŸ‰ Common Errors and Solutions:

"Invalid model or CLIP configuration"

  • Explanation: This error occurs when one or more of the model or CLIP parameters are not properly configured or are missing.
  • Solution: Double-check that all model and CLIP parameters (model_false, clip_false, model_true, clip_true) are correctly set up with valid configurations.

"Boolean value not set"

  • Explanation: This error occurs when the boolean_value parameter is not provided or is set to an invalid value.
  • Solution: Ensure that the boolean_value parameter is set to either True or False to enable the node to function correctly.

"Unexpected output type"

  • Explanation: This error occurs when the node returns an output type that is not expected by subsequent nodes in the workflow.
  • Solution: Verify that the output types (MODEL, CLIP, BOOLEAN) are correctly handled by the subsequent nodes in your workflow to avoid type mismatches.

Switch Model and CLIP JKšŸ‰ Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-JakeUpgrade
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 Playground, enabling artists to harness the latest AI tools to create incredible art.