ComfyUI  >  Nodes  >  comfyui-prompt-composer >  Prompt Composer Custom Lists

ComfyUI Node: Prompt Composer Custom Lists

Class Name

PromptComposerCustomLists

Category
AI WizArt/Prompt Composer Tools
Author
florestefano1975 (Account age: 194 days)
Extension
comfyui-prompt-composer
Latest Updated
5/22/2024
Github Stars
0.2K

How to Install comfyui-prompt-composer

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

Prompt Composer Custom Lists Description

Create customized prompts with weighted text elements for AI model input.

Prompt Composer Custom Lists:

The PromptComposerCustomLists node is designed to help you create customized prompts by combining various text elements and applying specific weights to them. This node is particularly useful for AI artists who want to generate complex and nuanced prompts for their AI models. By allowing you to input multiple text elements and assign weights to each, the node helps in crafting detailed and weighted prompts that can influence the output of your AI models in a more controlled and precise manner. The main function of this node, promptComposerCustomLists, takes optional and required text inputs, processes them based on their weights and active status, and returns a well-structured prompt string.

Prompt Composer Custom Lists Input Parameters:

text_in_opt

This is an optional string input parameter that allows you to add an initial text element to your prompt. If provided, this text will be included in the final prompt. This parameter is useful for adding a base or introductory text to your prompt. The value must be a string.

active

This is a required boolean parameter that determines whether the custom lists and their weights should be considered in the prompt generation. If set to True, the node will process the custom lists and their weights; if set to False, it will ignore them. The default value is True.

<custom_list_name>

Each custom list name corresponds to a specific text file in the custom-lists directory. These parameters allow you to select a specific text element from the custom list. The value must be a string selected from the list, with - indicating no selection. The default value is -.

<custom_list_name>_weight

This is a required float parameter associated with each custom list name. It allows you to assign a weight to the selected text element from the custom list. The weight influences the importance of the text element in the final prompt. The value ranges from 0 to 1.95, with a default value of 1. The weight is applied using the applyWeight function.

Prompt Composer Custom Lists Output Parameters:

text_out

This is the output string parameter that contains the final composed prompt. The prompt is generated by combining the optional text input and the selected text elements from the custom lists, each weighted according to their respective weights. The output is a single string that can be used as a prompt for your AI models.

Prompt Composer Custom Lists Usage Tips:

  • Ensure that the active parameter is set to True if you want the custom lists and their weights to be considered in the prompt generation.
  • Use the text_in_opt parameter to add a base or introductory text to your prompt, which can help set the context for the AI model.
  • Carefully select the text elements from the custom lists and assign appropriate weights to influence the final prompt effectively.
  • Experiment with different combinations of text elements and weights to achieve the desired level of detail and nuance in your prompts.

Prompt Composer Custom Lists Common Errors and Solutions:

Missing required parameter: <custom_list_name>

  • Explanation: This error occurs when a required custom list name parameter is not provided.
  • Solution: Ensure that all required custom list name parameters are included in the input.

Invalid weight value for <custom_list_name>_weight

  • Explanation: This error occurs when the weight value for a custom list name is outside the allowed range (0 to 1.95).
  • Solution: Ensure that the weight value for each custom list name is within the allowed range.

text_in_opt is not a string

  • Explanation: This error occurs when the text_in_opt parameter is not provided as a string.
  • Solution: Ensure that the text_in_opt parameter is a valid string.

active is not a boolean

  • Explanation: This error occurs when the active parameter is not provided as a boolean.
  • Solution: Ensure that the active parameter is a valid boolean value (True or False).

Prompt Composer Custom Lists Related Nodes

Go back to the extension to check out more related nodes.
comfyui-prompt-composer
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.