← See All Custom Node Packs

Inspire Pack

791
By Dr.Lt.Data
Updated 7 months ago
View on GitHub →See Common Issues →

Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

This extension provides various nodes to support Lora Block Weight, Regional Nodes, Backend Cache, Prompt Utils, List Utils and the Impact Pack.

Available Nodes

BindImageListPromptList //Inspire

Bind [ImageList, PromptList] (Inspire) Node Documentation

Overview

The Bind [ImageList, PromptList] (Inspire) node is a utility in the ComfyUI Inspire Pack designed to couple a list of images with a list of prompts. This pairing facilitates enhanced image processing workflows by ensuring corresponding prompts are readily available for each image. The node ensures that if there are more images than prompts, the extra images are paired with a default prompt.

Functionality

This node binds together individual images from an image list with prompts from a zipped prompt list, exporting them as synchronized lists that can be used in subsequent processing steps. When the number of images and prompts differ, it intelligently manages the pairing by either ignoring extra prompts or using default prompts for extra images.

Inputs

The node accepts the following inputs:

  1. Images: A list of image objects. This is required, and the node expects the images to be formatted correctly.
  2. Zipped Prompts: A list of tuples, each tuple containing a positive prompt, a negative prompt, and a name. This represents pre-processed prompt data.
  3. Default Positive: A string serving as the default positive prompt. Used when the number of images exceeds the number of prompts.
  4. Default Negative: A string serving as the default negative prompt. This is similarly used to make up the difference when extra images are present.

Outputs

The node produces four lists as output, corresponding to the inputs it processes:

  1. Image: A list of images, which is paired with prompts on a one-to-one basis.
  2. Positive: A list of positive prompts, each corresponding to an image.
  3. Negative: A list of negative prompts, each corresponding to an image.
  4. Prompt Label: A list of prompt labels or names, identifying each image-prompt pair.

If there are more images than prompts, the excess images will use the provided default prompts.

Use in Workflows

In ComfyUI workflows, the Bind [ImageList, PromptList] (Inspire) node can be used to streamline processes where images need to be evaluated or generated based on specific prompts. This node is especially useful when handling batches of images where consistent prompt-image association is necessary. Workflow designers may utilize this node to prepare images with their respective descriptive prompts before passing them to nodes for further analysis, generation, or processing.

Special Features and Considerations

  • Smart Prompt Assignment: The node automatically balances the number of images and prompts by either ignoring extra prompts or supplementing additional images with default prompts.
  • Workflow Efficiency: By automating the association of images with prompts, this node reduces manual setup, enhancing workflow efficiency.
  • Input as Lists: The node's design to handle input as lists fits seamlessly into workflows that manage batches of data. Outputs are similarly list-based for straightforward integration into subsequent processing steps.

In summary, the Bind [ImageList, PromptList] (Inspire) node is a powerful tool for managing and associating images with textual prompts in ComfyUI workflows, enhancing both efficiency and functionality through its user-friendly design.