🐳Prompt管理器星球版:
The CustomPromptManagerEnhanced is a sophisticated node designed to manage and manipulate prompts dynamically, allowing you to categorize them into positive and negative types. This node is particularly beneficial for AI artists who need to fine-tune the input prompts for their models, ensuring that the prompts are not only relevant but also weighted appropriately to influence the model's output. By supporting dynamic control over the number and content of prompts, this node provides a flexible and powerful tool for managing complex prompt scenarios. It also includes features for filtering prompts based on tags, which can be crucial for maintaining thematic consistency or focusing on specific aspects of the generated content. The main goal of this node is to streamline the prompt management process, making it easier to achieve desired artistic outcomes with AI models.
🐳Prompt管理器星球版 Input Parameters:
prompts_list
The prompts_list parameter is a collection of prompts that you wish to manage. Each prompt in the list should be a dictionary containing details such as the text of the prompt, whether it is enabled, its weight, and its type (positive or negative). This parameter is crucial as it forms the basis of the node's operations, allowing you to specify exactly how each prompt should be treated. There are no strict minimum or maximum values for this parameter, but it should be structured correctly to ensure proper functionality.
use_weights
The use_weights parameter is a boolean that determines whether the weights specified in the prompts should be applied. When set to true, the node will adjust the influence of each prompt based on its weight, which can significantly impact the final output by emphasizing certain prompts over others. The default value is typically false, meaning weights are not applied unless explicitly enabled.
enable_tags_filter
The enable_tags_filter parameter is a boolean that activates the tag filtering feature. When enabled, the node will only process prompts that match specified tags, allowing for more targeted prompt management. This is particularly useful when working with large sets of prompts where only a subset is relevant to the current task. The default value is false, meaning tag filtering is not applied unless specified.
filter_tags
The filter_tags parameter is a string containing a comma-separated list of tags used for filtering prompts. This parameter works in conjunction with enable_tags_filter to determine which prompts should be included based on their associated tags. It is essential for narrowing down prompts to those that are most relevant to your current artistic goals.
🐳Prompt管理器星球版 Output Parameters:
positive_combined
The positive_combined output is a string that contains all the positive prompts combined into a single text block. This output is crucial for feeding into AI models that require a consolidated input of positive prompts to generate desired results. It reflects the processed and weighted positive prompts, providing a clear and concise input for further processing.
negative_combined
The negative_combined output is a string that contains all the negative prompts combined into a single text block. Similar to the positive output, this is essential for models that need to consider negative prompts to avoid certain outcomes or biases. It ensures that all relevant negative prompts are accounted for and appropriately weighted.
🐳Prompt管理器星球版 Usage Tips:
- To maximize the effectiveness of your prompts, ensure that each prompt in the
prompts_listis well-defined and categorized correctly as either positive or negative. This will help the node process them accurately and produce the desired output. - Utilize the
use_weightsparameter to fine-tune the influence of each prompt. By adjusting weights, you can emphasize certain prompts over others, which can be particularly useful when trying to achieve specific artistic effects. - When working with a large number of prompts, consider using the
enable_tags_filterandfilter_tagsparameters to focus on a subset of prompts that are most relevant to your current project. This can help streamline the process and improve the quality of the output.
🐳Prompt管理器星球版 Common Errors and Solutions:
JSON解析错误
- Explanation: This error occurs when the node fails to parse the JSON data provided in the
prompts_list. It is typically due to malformed JSON or incorrect data structure. - Solution: Ensure that the
prompts_listis correctly formatted as a JSON array of dictionaries, with each dictionary containing the necessary fields such astext,enabled,weight, andtype.
处理错误
- Explanation: A general error indicating that an unexpected issue occurred during the processing of prompts.
- Solution: Check the structure and content of your input data to ensure it meets the expected format. Review any error messages for specific details that might indicate the source of the problem, and correct any discrepancies in the input data.
