ComfyUI > Nodes > WAS Node Suite > Image Input Switch

ComfyUI Node: Image Input Switch

Class Name

Image 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

Image Input Switch Description

Dynamically toggle between two input images based on a boolean condition for flexible image processing workflows.

Image Input Switch:

The Image Input Switch node is designed to streamline your workflow by allowing you to dynamically select between two input images based on a boolean condition. This node is particularly useful when you need to toggle between different image sources or apply conditional logic to your image processing pipeline. By leveraging this node, you can create more flexible and adaptive image processing workflows, ensuring that the appropriate image is used based on the specified condition.

Image Input Switch Input Parameters:

image_a

This parameter accepts the first image input. It serves as one of the two potential images that can be selected based on the boolean condition. The image should be in a compatible format that the node can process.

image_b

This parameter accepts the second image input. Similar to image_a, this image is the alternative option that can be selected if the boolean condition is not met. Ensure that this image is also in a compatible format.

boolean

This boolean parameter determines which image will be selected. If set to True, the node will output image_a. If set to False, the node will output image_b. This parameter allows for dynamic switching between the two images based on your specific needs.

Image Input Switch Output Parameters:

IMAGE

The output is a single image, which will be either image_a or image_b depending on the value of the boolean parameter. This output can then be used in subsequent nodes for further processing or analysis.

Image Input Switch Usage Tips:

  • Use the boolean parameter to create conditional workflows where different images are required based on specific criteria.
  • Combine this node with other logic nodes to build complex image processing pipelines that can adapt to various conditions.
  • Ensure that both image_a and image_b are in the same format and resolution to avoid any compatibility issues when switching between them.

Image Input Switch Common Errors and Solutions:

Incompatible image formats

  • Explanation: The images provided in image_a and image_b are not in a compatible format.
  • Solution: Ensure that both images are in the same format and resolution before inputting them into the node.

Missing image input

  • Explanation: One or both of the image inputs are missing.
  • Solution: Provide valid images for both image_a and image_b to ensure the node functions correctly.

Invalid boolean value

  • Explanation: The boolean parameter is not set correctly.
  • Solution: Ensure that the boolean parameter is set to either True or False to control the image selection.

Image 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.