ComfyUI  >  Nodes  >  ComfyUI-Prompt-Combinator >  🔢 Pick Random Prompt from Prompt Combinator

ComfyUI Node: 🔢 Pick Random Prompt from Prompt Combinator

Class Name

PromptCombinatorRandomPrompt

Category
prompt_combinator
Author
lquesada (Account age: 4090 days)
Extension
ComfyUI-Prompt-Combinator
Latest Updated
6/30/2024
Github Stars
0.0K

How to Install ComfyUI-Prompt-Combinator

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

  • 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

🔢 Pick Random Prompt from Prompt Combinator Description

Enhances creative workflow by randomly selecting prompts for diverse and inspiring results.

🔢 Pick Random Prompt from Prompt Combinator:

The PromptCombinatorRandomPrompt node is designed to enhance your creative workflow by randomly selecting a prompt from a set of generated prompts. This node is particularly useful when you have a large number of prompt combinations and want to explore different creative directions without manually picking each one. By leveraging a random selection mechanism, it ensures a diverse and unbiased choice, which can lead to unexpected and inspiring results. This node is part of the ComfyUI-Prompt-Combinator suite, which aims to streamline the process of generating and managing multiple prompt combinations for AI art projects.

🔢 Pick Random Prompt from Prompt Combinator Input Parameters:

prompts

This parameter accepts a multiline string input where each line represents a different prompt. The prompts are the creative text inputs that you want to randomly select from. This parameter is required and must be provided by the user. The default value is an empty string.

combination_ids

This parameter is a list of IDs corresponding to each prompt. These IDs help in tracking and managing the prompts, especially when they are part of a larger combinatorial set. This parameter is required and must match the number of prompts provided.

seed

This parameter is an integer that sets the seed for the random number generator. By setting a specific seed, you can ensure reproducibility of the random selection process. The default value is 0, and it can range from 0 to 0xffffffffffffffff.

🔢 Pick Random Prompt from Prompt Combinator Output Parameters:

prompt

This output is the randomly selected prompt from the provided list. It is a string that represents the creative text input chosen by the node.

combination_id

This output is the ID corresponding to the randomly selected prompt. It helps in identifying and managing the selected prompt within the larger set of combinations.

filename

This output is a string that combines the elements of the combination_id into a single filename. This can be useful for saving or referencing the selected prompt in a structured manner.

🔢 Pick Random Prompt from Prompt Combinator Usage Tips:

  • Ensure that the number of combination_ids matches the number of prompts to avoid assertion errors.
  • Use the seed parameter to control the randomness and ensure reproducibility of your results.
  • Utilize the filename output to systematically save or reference your selected prompts for future use.

🔢 Pick Random Prompt from Prompt Combinator Common Errors and Solutions:

Amount of combination ids must be the same as amount of prompts

  • Explanation: This error occurs when the number of combination_ids does not match the number of prompts.
  • Solution: Ensure that you provide an equal number of combination_ids and prompts to the node.

Invalid seed value

  • Explanation: This error occurs when the seed value is outside the acceptable range.
  • Solution: Ensure that the seed value is within the range of 0 to 0xffffffffffffffff.

🔢 Pick Random Prompt from Prompt Combinator Related Nodes

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