ComfyUI > Nodes > ComfyUI Layer Style > LayerUtility: ImageHub

ComfyUI Node: LayerUtility: ImageHub

Class Name

LayerUtility: ImageHub

Category
😺dzNodes/LayerUtility
Author
chflame163 (Account age: 445days)
Extension
ComfyUI Layer Style
Latest Updated
2024-06-24
Github Stars
0.64K

How to Install ComfyUI Layer Style

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

LayerUtility: ImageHub Description

Streamline image and mask selection for AI art projects with centralized hub and random output option.

LayerUtility: ImageHub:

The LayerUtility: ImageHub node is designed to streamline the process of managing multiple image and mask inputs within your AI art projects. This node allows you to select and output a specific image and its corresponding mask from up to nine different input pairs. By providing a centralized hub for image and mask selection, it simplifies the workflow, making it easier to manage and switch between different layers or versions of your artwork. The node also includes an option to randomly select an output, adding an element of unpredictability and creativity to your work. This functionality is particularly useful for AI artists looking to experiment with different combinations of images and masks without manually changing inputs each time.

LayerUtility: ImageHub Input Parameters:

output

This parameter determines which input image and mask pair will be selected for output. It accepts an integer value ranging from 1 to 9, with a default value of 1. The selected number corresponds to the input pair (e.g., 1 for input1_image and input1_mask, 2 for input2_image and input2_mask, etc.). This allows you to easily switch between different input pairs.

random_output

This boolean parameter, when set to True, enables the random selection of an output pair from the available inputs. The default value is False. If enabled, the node will randomly choose one of the input pairs that have been provided, adding an element of randomness to your workflow.

input1_image

This optional parameter accepts an image input. It is the first image in the list of possible inputs. If provided, it can be selected for output based on the value of the output parameter.

input1_mask

This optional parameter accepts a mask input corresponding to input1_image. If provided, it can be selected for output based on the value of the output parameter.

input2_image

This optional parameter accepts an image input. It is the second image in the list of possible inputs. If provided, it can be selected for output based on the value of the output parameter.

input2_mask

This optional parameter accepts a mask input corresponding to input2_image. If provided, it can be selected for output based on the value of the output parameter.

input3_image

This optional parameter accepts an image input. It is the third image in the list of possible inputs. If provided, it can be selected for output based on the value of the output parameter.

input3_mask

This optional parameter accepts a mask input corresponding to input3_image. If provided, it can be selected for output based on the value of the output parameter.

input4_image

This optional parameter accepts an image input. It is the fourth image in the list of possible inputs. If provided, it can be selected for output based on the value of the output parameter.

input4_mask

This optional parameter accepts a mask input corresponding to input4_image. If provided, it can be selected for output based on the value of the output parameter.

input5_image

This optional parameter accepts an image input. It is the fifth image in the list of possible inputs. If provided, it can be selected for output based on the value of the output parameter.

input5_mask

This optional parameter accepts a mask input corresponding to input5_image. If provided, it can be selected for output based on the value of the output parameter.

input6_image

This optional parameter accepts an image input. It is the sixth image in the list of possible inputs. If provided, it can be selected for output based on the value of the output parameter.

input6_mask

This optional parameter accepts a mask input corresponding to input6_image. If provided, it can be selected for output based on the value of the output parameter.

input7_image

This optional parameter accepts an image input. It is the seventh image in the list of possible inputs. If provided, it can be selected for output based on the value of the output parameter.

input7_mask

This optional parameter accepts a mask input corresponding to input7_image. If provided, it can be selected for output based on the value of the output parameter.

input8_image

This optional parameter accepts an image input. It is the eighth image in the list of possible inputs. If provided, it can be selected for output based on the value of the output parameter.

input8_mask

This optional parameter accepts a mask input corresponding to input8_image. If provided, it can be selected for output based on the value of the output parameter.

input9_image

This optional parameter accepts an image input. It is the ninth image in the list of possible inputs. If provided, it can be selected for output based on the value of the output parameter.

input9_mask

This optional parameter accepts a mask input corresponding to input9_image. If provided, it can be selected for output based on the value of the output parameter.

LayerUtility: ImageHub Output Parameters:

image

This output parameter provides the selected image based on the output or random_output parameter. It is the image that corresponds to the chosen input pair.

mask

This output parameter provides the selected mask based on the output or random_output parameter. It is the mask that corresponds to the chosen input pair.

LayerUtility: ImageHub Usage Tips:

  • To quickly switch between different image and mask pairs, adjust the output parameter to the desired input number.
  • Enable random_output to add an element of surprise and creativity to your workflow, especially useful for generating diverse results.
  • Ensure that the input pairs you want to use are correctly provided to avoid errors or unexpected results.

LayerUtility: ImageHub Common Errors and Solutions:

No Input

  • Explanation: This error occurs when no input images or masks are provided.
  • Solution: Ensure that at least one image or mask input is provided to the node.

Invalid Output Value

  • Explanation: This error occurs when the output parameter is set to a value outside the range of 1 to 9. - Solution: Adjust the output parameter to a valid integer value between 1 and 9.

Random Output Selection Error

  • Explanation: This error occurs when random_output is enabled, but no valid input pairs are available for selection.
  • Solution: Ensure that at least one valid input pair is provided when using the random_output option.

LayerUtility: ImageHub Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Layer Style
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.