Install this extension via the ComfyUI Manager by searching
for ComfyUI-Prompt-Combinator
1. Click the Manager button in the main menu
2. Select Custom Nodes Manager button
3. Enter ComfyUI-Prompt-Combinator 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
ComfyUI-Prompt-Combinator is a node that generates all possible combinations of prompts from multiple string lists. The ComfyUI-Prompt-Combinator Merger node allows merging outputs from two different ComfyUI-Prompt-Combinator nodes.
ComfyUI-Prompt-Combinator Introduction
The ComfyUI-Prompt-Combinator is an extension designed to enhance your creative workflow by generating all possible combinations of prompts from multiple lists of strings. This tool is particularly useful for AI artists who want to explore a wide range of creative possibilities without manually crafting each prompt combination. By automating the combination process, the ComfyUI-Prompt-Combinator saves time and effort, allowing you to focus more on the artistic aspects of your work.
How ComfyUI-Prompt-Combinator Works
The ComfyUI-Prompt-Combinator operates on a simple yet powerful principle: it takes multiple lists of strings (prompts) and generates every possible combination of these strings. Imagine you have three lists of words or phrases. The extension will mix and match each item from the lists to create a comprehensive set of unique prompts.
For example, if you have:
List 1: "a cat", "a dog"
List 2: "with pointy ears", "with fluffy tail", "with two heads"
List 3: "cute", "scary"
The extension will generate combinations like:
"a cat with pointy ears cute"
"a cat with pointy ears scary"
"a dog with fluffy tail cute"
"a dog with two heads scary"
This combinatorial approach ensures that you explore all potential prompt variations, which can be particularly useful for generating diverse AI-generated art.
ComfyUI-Prompt-Combinator Features
Prompt Combinator Node
This is the core feature that generates all possible combinations of prompts from your input lists. You can input up to 8 different lists, and the node will output a comprehensive list of combined prompts.
Prompt Combinator Merger Node
This feature allows you to merge the outputs of two different Prompt Combinator nodes. It is useful when you want to combine complex sets of prompts generated from different sources.
Prompt Combinator Export Gallery Node
This node generates an HTML gallery to navigate the output of the Prompt Combinator. It visually displays the prompts alongside their corresponding images, making it easier to review and select the best combinations. You can see an example of the gallery here and a gallery with all embedded in a single HTML here.
Pick Random Prompt from Prompt Combinator Node
This feature picks a single random prompt from the output of the Prompt Combinator. It is useful when you want to quickly test a random combination without going through the entire list.
ComfyUI-Prompt-Combinator Models
The extension does not include different models but rather focuses on the combinatorial generation of prompts. The nodes provided are designed to work together to enhance your prompt generation process.
What's New with ComfyUI-Prompt-Combinator
2024-06-19
Added Pick Random Prompt from Prompt Combinator Node: This new feature allows you to randomly select a prompt from the generated combinations, adding an element of surprise and spontaneity to your creative process.
2024-06-17
Added Prompt Combinator Export Gallery Node: This update introduced the ability to generate an HTML gallery, making it easier to navigate and visualize the generated prompts and their corresponding images.
Simplified Input/Output Setup: The setup process for inputs and outputs has been streamlined for a more user-friendly experience.
2024-05-25
Extended from 4 Inputs to 8 Inputs: The number of input lists has been increased, allowing for more complex and varied prompt combinations.
2024-04-25
Added Prompt Combinator Merge Node: This feature enables the merging of outputs from two different Prompt Combinator nodes, providing more flexibility in combining prompts.
2024-04-24
Initial Commit: The first release of the ComfyUI-Prompt-Combinator.
Troubleshooting ComfyUI-Prompt-Combinator
Common Issues and Solutions
Issue: No Output Generated
Solution: Ensure that all input lists are correctly populated and that there are no empty strings. Check the node connections to make sure they are properly linked.
Issue: HTML Gallery Not Displaying Correctly
Solution: Verify that the HTML file is correctly generated and that all necessary files (images, CSS) are in the same directory. Try opening the HTML file in a different browser.
Issue: Random Prompt Selection Not Working
Solution: Make sure the Pick Random Prompt from Prompt Combinator node is correctly connected to the output of the Prompt Combinator node. Check for any errors in the node configuration.
Frequently Asked Questions
Q: Can I use more than 8 input lists?
A: Currently, the extension supports up to 8 input lists. For more complex combinations, consider merging outputs from multiple Prompt Combinator nodes.
Q: How do I identify which inputs were used in the generated prompts?
A: Prepend the prompts with identifiers (e.g., "cat@a cat") to easily track which inputs were used in each combination.
Learn More about ComfyUI-Prompt-Combinator
For additional resources, tutorials, and community support, you can explore the following:
Community Forums: Engage with other AI artists and developers to share tips and get support.
Documentation: Detailed documentation on how to use ComfyUI and its extensions.
By leveraging these resources, you can maximize the potential of the ComfyUI-Prompt-Combinator and enhance your AI art creation process.