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

ComfyUI Node: Model Input Switch JKšŸ‰

Class Name

CR Model Input Switch 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

Model Input Switch JKšŸ‰ Description

Dynamic model selection node for switching between two models based on boolean input, streamlining model selection process in AI projects.

Model Input Switch JKšŸ‰:

The CR Model Input Switch JK node is designed to dynamically select between two different models based on a boolean input. This node is particularly useful in scenarios where you need to switch between two models conditionally, allowing for more flexible and adaptive workflows. By leveraging this node, you can streamline your model selection process, ensuring that the appropriate model is used based on the specified condition. This can be especially beneficial in complex AI art projects where different models may be required under different circumstances.

Model Input Switch JKšŸ‰ Input Parameters:

boolean_value

The boolean_value parameter is a boolean input that determines which model will be selected. If set to True, the node will select the model specified by model_true. If set to False, it will select the model specified by model_false. The default value is False. This parameter is crucial as it controls the conditional logic of the node, enabling dynamic model selection based on the given condition.

model_false

The model_false parameter is the model that will be selected if the boolean_value is set to False. This parameter does not have a default value and must be specified. It represents one of the two possible models that the node can output, providing flexibility in model selection based on the boolean condition.

model_true

The model_true parameter is the model that will be selected if the boolean_value is set to True. Similar to model_false, this parameter does not have a default value and must be specified. It represents the alternative model that the node can output, allowing for conditional model switching based on the boolean input.

Model Input Switch JKšŸ‰ Output Parameters:

MODEL

The MODEL output is the selected model based on the boolean_value input. If boolean_value is True, the output will be the model specified by model_true. If boolean_value is False, the output will be the model specified by model_false. This output is essential as it provides the dynamically selected model for further processing in your workflow.

BOOLEAN

The BOOLEAN output is the same as the boolean_value input. It is returned to provide confirmation of the condition that was used for model selection. This output can be useful for debugging or for further conditional logic in your workflow.

Model Input Switch JKšŸ‰ Usage Tips:

  • Ensure that both model_false and model_true are correctly specified to avoid any runtime errors.
  • Use the boolean_value parameter to dynamically switch models based on conditions in your workflow, such as user input or other node outputs.
  • Combine this node with other logic nodes to create complex conditional workflows that adapt to different scenarios.

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

"Model not specified"

  • Explanation: This error occurs when either model_false or model_true is not provided.
  • Solution: Ensure that both model_false and model_true parameters are specified with valid models.

"Invalid boolean value"

  • Explanation: This error occurs when the boolean_value is not a valid boolean.
  • Solution: Ensure that the boolean_value parameter is set to either True or False.

"Model type mismatch"

  • Explanation: This error occurs when the models provided for model_false and model_true are of different types.
  • Solution: Ensure that both model_false and model_true are of the same model type to avoid type mismatch errors.

Model Input Switch 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.