ComfyUI Extension: ComfyUI-multiple-inputs
A collection of utility nodes for ComfyUI, focusing on batch processing, stitching, and visualization.
Custom Nodes (0)
README
ComfyUI My Template Nodes
A collection of utility nodes for ComfyUI, focusing on batch processing, stitching, and visualization.
Features
This node pack includes the following functionalities. The input ports for all nodes can be dynamically expanded using the inputcount widget.
Note: The dynamic input logic is adapted from KJNodes. Special thanks to the author for the implementation.
1. Multiple Text Inputs
Connects multiple text strings into a single output string using a custom delimiter.
- Useful for prompt composition or batching text parameters.

2. Multiple Masks to RGB Image
Converts multiple mask inputs into a single RGB image where each mask is represented by a unique color.
- Features: Includes options for binarization (thresholding) and noise removal (removing small isolated pixels) to clean up mask edges before visualization.
- Output: Returns the visual image and a string report of the colors used (RGB/Hex).

3. Multiple Image Stitch
Stitches multiple images (or image batches) into a single large image.
- Direction: Supports stitching "right" (horizontal) or "down" (vertical).
- Resizing: Automatically handles resizing images to match the base dimension and offers a final output resize option.
- List Output: Also returns a flat list of all input images, useful for converting individual inputs into a batch/list for other nodes.

4. Multiple Mask Stitch
Similar to the Image Stitch node but specialized for masks.
- Stitches multiple masks horizontally or vertically.
- Returns both the stitched mask and a list of individual masks.

Usage
- Adjust Input Count: Change the
inputcountvalue to the desired number of inputs. - Update Ports: The node will automatically update (or click "Update inputs" if available in your UI context) to show the new input slots.
- Connect: Link your Strings, Images, or Masks.
Installation
- Clone this repository into your
ComfyUI/custom_nodes/folder. - Install dependencies:
pip install -r requirements.txt