ComfyUI > Nodes > Comfyroll Studio > 🔀 CR Model Input Switch

ComfyUI Node: 🔀 CR Model Input Switch

Class Name

CR Model Input Switch

Category
🧩 Comfyroll Studio/🛠️ Utils/🔀 Logic
Author
Suzie1 (Account age: 2158days)
Extension
Comfyroll Studio
Latest Updated
2024-06-05
Github Stars
0.49K

How to Install Comfyroll Studio

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

🔀 CR Model Input Switch Description

Streamline workflow by dynamically selecting between two models based on input for controlled model switching and increased flexibility.

🔀 CR Model Input Switch:

The CR Model Input Switch node is designed to streamline your workflow by allowing you to dynamically select between two different models based on a specified input. This node is particularly useful when you need to switch between models in a controlled manner, ensuring that the appropriate model is used for your specific task. By providing a simple integer input, you can easily toggle between two models, making your workflow more flexible and efficient. This node is ideal for scenarios where you need to test different models or switch models based on certain conditions without manually changing the configuration each time.

🔀 CR Model Input Switch Input Parameters:

Input

This parameter determines which model will be selected. It accepts an integer value with a default of 1, a minimum of 1, and a maximum of 2. When set to 1, the node will select model1; when set to 2, it will select model2. This allows you to easily switch between the two models based on your needs.

model1

This is an optional parameter that accepts a model. When the Input parameter is set to 1, this model will be selected. If not provided, the node will return None for this model.

model2

This is an optional parameter that accepts a model. When the Input parameter is set to 2, this model will be selected. If not provided, the node will return None for this model.

🔀 CR Model Input Switch Output Parameters:

MODEL

This output returns the selected model based on the Input parameter. If Input is set to 1, it returns model1; if Input is set to 2, it returns model2. This allows you to dynamically switch between models in your workflow.

show_help

This output provides a URL to the documentation for the CR Model Input Switch node. This is useful for quickly accessing detailed information and usage examples for the node.

🔀 CR Model Input Switch Usage Tips:

  • Use the Input parameter to dynamically switch between models in your workflow, making it easier to test different models or adapt to changing conditions.
  • Ensure that both model1 and model2 are properly configured and available to avoid unexpected results.
  • Utilize the show_help output to quickly access the node's documentation for additional guidance and examples.

🔀 CR Model Input Switch Common Errors and Solutions:

NoneType object has no attribute

  • Explanation: This error occurs when the selected model (model1 or model2) is not provided, resulting in a None value.
  • Solution: Ensure that both model1 and model2 are properly configured and available when using the node.

Invalid Input Value

  • Explanation: This error occurs when the Input parameter is set to a value outside the allowed range (1 to 2).
  • Solution: Set the Input parameter to a valid integer value within the range of 1 to 2.

Model Not Found

  • Explanation: This error occurs when the specified model (model1 or model2) cannot be found or is not properly loaded.
  • Solution: Verify that the models are correctly loaded and available in the specified paths or configurations.

🔀 CR Model Input Switch Related Nodes

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