ComfyUI > Nodes > One Button Prompt > Auto Negative Prompt

ComfyUI Node: Auto Negative Prompt

Class Name

AutoNegativePrompt

Category
OneButtonPrompt
Author
AIrjen (Account age: 497days)
Extension
One Button Prompt
Latest Updated
2024-08-13
Github Stars
0.8K

How to Install One Button Prompt

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

Auto Negative Prompt Description

Automatically generates negative prompts for AI art projects to minimize unwanted elements in generated images.

Auto Negative Prompt:

The AutoNegativePrompt node is designed to automatically generate negative prompts for your AI art projects. This node leverages a dynamic approach to create negative prompts based on your positive prompt input, ensuring that unwanted elements are minimized in the generated images. By adjusting various parameters, you can control the randomness and enhancement of the negative prompts, making it a versatile tool for refining your AI-generated artwork. The primary goal of this node is to streamline the process of creating effective negative prompts, saving you time and improving the quality of your outputs.

Auto Negative Prompt Input Parameters:

postive_prompt

This parameter takes the positive prompt that you want to use as the basis for generating the negative prompt. The positive prompt is a description of the elements you want to include in your image. The node will analyze this prompt to identify and exclude conflicting or undesirable elements in the negative prompt. There are no specific minimum or maximum values for this parameter, but it should be a meaningful and descriptive text.

insanitylevel

This slider controls the randomness of the negative prompt generation. A lower value results in more consistent and predictable negative prompts, while a higher value introduces more randomness and variability. The minimum value is 0, the maximum value is 10, and the default value is 0.

enhancenegative

This checkbox enables the enhancement of the base negative prompt. When enabled, the node will apply additional processing to strengthen the negative prompt, making it more effective at excluding unwanted elements. The default value is False.

base_negative

This textbox allows you to input a base negative prompt that will be included in the generated negative prompt. This can be useful for specifying elements that you always want to exclude from your images. The default value is an empty string.

seed

This parameter sets the seed for random number generation, ensuring reproducibility of the negative prompts. If you want to generate unique prompts each time, you can leave this parameter unset or set it to -1 for random seed generation.

base_model

This dropdown menu allows you to select the base model used for prompt generation. The available options are "SD1.5", "SDXL", and "Stable Cascade". Each model has different characteristics and may affect the style and effectiveness of the generated negative prompts. The default value is "SD1.5".

Auto Negative Prompt Output Parameters:

generatedprompt

This output parameter provides the generated negative prompt as a string. The negative prompt is designed to exclude unwanted elements from your AI-generated images, based on the analysis of the positive prompt and the specified parameters. This output can be directly used in your AI art generation workflow to improve the quality of the results.

Auto Negative Prompt Usage Tips:

  • To achieve more consistent negative prompts, set the insanitylevel to a lower value.
  • Use the base_negative parameter to specify elements that you always want to exclude from your images.
  • Experiment with different base_model options to see which one works best for your specific use case.
  • Enable the enhancenegative checkbox if you need a stronger negative prompt to exclude more persistent unwanted elements.

Auto Negative Prompt Common Errors and Solutions:

"Invalid base model selected"

  • Explanation: The selected base model is not recognized by the node.
  • Solution: Ensure that you select one of the available options: "SD1.5", "SDXL", or "Stable Cascade".

"Positive prompt is empty"

  • Explanation: The positive prompt parameter is required and cannot be empty.
  • Solution: Provide a meaningful and descriptive positive prompt to guide the generation of the negative prompt.

"Seed value is not an integer"

  • Explanation: The seed parameter must be an integer value.
  • Solution: Ensure that the seed parameter is set to an integer. If you want random seed generation, set it to -1.

Auto Negative Prompt Related Nodes

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