ComfyUI  >  Nodes  >  ComfyUI-CreaPrompt >  CreaPrompt

ComfyUI Node: CreaPrompt

Class Name

CreaPrompt

Category
CreaPrompt
Author
Tritant (Account age: 3163 days)
Extension
ComfyUI-CreaPrompt
Latest Updated
7/16/2024
Github Stars
0.0K

How to Install ComfyUI-CreaPrompt

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

CreaPrompt Description

Versatile node for generating AI art prompts from CSV files with randomization and customization features for diverse inputs.

CreaPrompt:

CreaPrompt is a versatile node designed to generate creative prompts for AI art projects. It allows you to create customized prompts by selecting or randomizing lines from CSV files, which can be particularly useful for generating diverse and unique inputs for your AI models. The node supports both single and multiple prompt generation modes, enabling you to produce a variety of prompts in one go. By leveraging the power of randomization and customization, CreaPrompt helps you explore a wide range of creative possibilities, making it an essential tool for AI artists looking to enhance their creative workflows.

CreaPrompt Input Parameters:

Multi_prompts

This parameter allows you to input multiple prompts as a single string, with each prompt separated by a newline character. It supports multiline input, making it easy to manage and edit multiple prompts at once. The default value is "body_text".

prefix

This parameter lets you add a prefix to each prompt in the Multi_prompts input. It supports multiline input, allowing you to specify complex prefixes if needed. The default value is an empty string, meaning no prefix will be added unless specified.

suffix

This parameter allows you to add a suffix to each prompt in the Multi_prompts input. Like the prefix parameter, it supports multiline input for added flexibility. The default value is an empty string, meaning no suffix will be added unless specified.

Prompt_count

This parameter determines the number of prompts to generate. It accepts integer values with a minimum of 1 and a maximum of 1000. The default value is 1, which means only one prompt will be generated unless specified otherwise.

CreaPrompt_Collection

This parameter enables or disables the use of a collection of prompts. When set to "enabled", the node will generate prompts from a predefined collection. The default value is "disabled".

seed

This parameter sets the seed for the random number generator, ensuring reproducibility of the generated prompts. It accepts integer values with a minimum of 0 and a maximum of 1125899906842624. The default value is 0.

CreaPrompt Output Parameters:

prompt

This output parameter provides the generated prompt(s) as a string. The prompts are either selected or randomized based on the input parameters and can be used directly in your AI art projects.

prompt_debug

This output parameter offers a debug version of the generated prompts, including any prefixes or suffixes added. It helps you verify the final format of the prompts before using them in your projects.

seed

This output parameter returns the seed value used for the random number generator. It ensures that you can reproduce the same set of prompts if needed.

CreaPrompt Usage Tips:

  • To generate a variety of prompts, use the "🎲random" option in the input parameters to randomize lines from your CSV files.
  • Utilize the prefix and suffix parameters to add context or specific instructions to your prompts, enhancing their relevance to your project.
  • Experiment with different seed values to explore a wider range of prompt variations while maintaining reproducibility.

CreaPrompt Common Errors and Solutions:

FileNotFoundError: [Errno 2] No such file or directory

  • Explanation: This error occurs when the specified CSV file is not found in the directory.
  • Solution: Ensure that the CSV file exists in the specified directory and that the file path is correct.

ValueError: invalid literal for int() with base 10

  • Explanation: This error occurs when a non-integer value is provided for the seed or Prompt_count parameters.
  • Solution: Verify that the seed and Prompt_count parameters are set to valid integer values within the specified range.

IndexError: list index out of range

  • Explanation: This error occurs when the node tries to access an index that does not exist in the list of prompts.
  • Solution: Ensure that the CSV files contain enough lines to match the specified Prompt_count and that the input parameters are correctly configured.

CreaPrompt Related Nodes

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