ComfyUI  >  Nodes  >  ComfyUI-AI-Assistant >  Prompt Blacklist

ComfyUI Node: Prompt Blacklist

Class Name

prompt_blacklist

Category
advanced/AI_Assistant/text
Author
JackEllie (Account age: 634 days)
Extension
ComfyUI-AI-Assistant
Latest Updated
7/26/2024
Github Stars
0.0K

How to Install ComfyUI-AI-Assistant

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

Prompt Blacklist Description

Refine AI art prompts by excluding unwanted keywords for focused output.

Prompt Blacklist:

The prompt_blacklist node is designed to help you refine and clean your AI-generated art prompts by removing unwanted tags or keywords. This node is particularly useful when you want to exclude specific elements from your prompts to achieve a more focused and desired output. By specifying a list of keywords or tags to be blacklisted, the node will filter out these elements from your base prompt, ensuring that the final prompt is free from any undesired content. This functionality is essential for artists who want to maintain a certain quality or style in their AI-generated artwork by eliminating irrelevant or distracting elements.

Prompt Blacklist Input Parameters:

string

The string parameter is the base prompt that you want to clean. It should be a multiline string containing various tags or keywords separated by commas. This is the primary input that the node will process to remove unwanted elements. The default value is an empty string, and it is a required input.

Blacklist_Prompt

The Blacklist_Prompt parameter is a multiline string where you specify the tags or keywords you want to remove from the base prompt. Each tag should be separated by a comma. This parameter allows you to customize the filtering process to exclude specific elements that you do not want in your final prompt. The default value is an empty string, and it is a required input.

Prompt Blacklist Output Parameters:

string

The string output parameter is the cleaned version of the base prompt after removing the blacklisted tags. This output will contain only the tags or keywords that were not specified in the Blacklist_Prompt, providing you with a refined prompt for your AI-generated artwork.

show_help

The show_help output parameter provides a helpful message explaining how to use the blacklist functionality. It includes an example to guide you on how to format your base prompt and blacklist prompt correctly. This output is particularly useful for new users who may need guidance on how to effectively use the node.

Prompt Blacklist Usage Tips:

  • Ensure that your base prompt (string parameter) and blacklist prompt (Blacklist_Prompt parameter) are properly formatted with tags separated by commas to achieve accurate filtering.
  • Use the show_help output to understand the correct usage and formatting of the input parameters, especially if you are new to using this node.
  • Regularly update your blacklist prompt to include any new tags or keywords that you want to exclude from your prompts, ensuring that your AI-generated artwork remains consistent with your desired style.

Prompt Blacklist Common Errors and Solutions:

"Cannot execute because a node is missing the class_type property."

  • Explanation: This error occurs when a node in the prompt is missing the class_type property, which is essential for execution.
  • Solution: Ensure that all nodes in your prompt have the class_type property defined. Check your prompt configuration and add the missing property where necessary.

"Cannot execute because node {class_type} does not exist."

  • Explanation: This error indicates that a node specified in the prompt does not exist in the node class mappings.
  • Solution: Verify that all nodes in your prompt are correctly defined and exist in the node class mappings. Update your prompt to use valid nodes.

"Prompt has no outputs"

  • Explanation: This error occurs when the prompt does not produce any outputs, which is required for successful execution.
  • Solution: Ensure that your prompt is correctly configured to produce outputs. Check the connections and configurations of your nodes to make sure they generate the expected outputs.

Prompt Blacklist Related Nodes

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