ComfyUI  >  Nodes  >  ComfyUI >  PerpNegGuider

ComfyUI Node: PerpNegGuider

Class Name

PerpNegGuider

Category
_for_testing
Author
ComfyAnonymous (Account age: 598 days)
Extension
ComfyUI
Latest Updated
8/12/2024
Github Stars
45.9K

How to Install ComfyUI

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

PerpNegGuider Description

Enhances AI-generated images by balancing positive and negative conditioning prompts for precise artistic results.

PerpNegGuider:

The PerpNegGuider node is designed to enhance the quality of AI-generated images by guiding the model's conditioning process. It leverages a technique called perpendicular negative guidance, which helps in refining the output by balancing positive and negative conditioning prompts. This node is particularly useful for artists looking to fine-tune their AI models to achieve more precise and desirable results. By adjusting the influence of positive and negative prompts, PerpNegGuider ensures that the generated images adhere closely to the intended artistic vision while minimizing unwanted artifacts or deviations.

PerpNegGuider Input Parameters:

model

This parameter represents the AI model that will be guided. It is essential for the node to function as it provides the base on which the conditioning will be applied.

positive

This parameter takes in the positive conditioning prompts. These prompts are the desired attributes or features that you want to emphasize in the generated image.

negative

This parameter accepts the negative conditioning prompts. These prompts are the undesired attributes or features that you want to minimize or eliminate from the generated image.

empty_conditioning

This parameter is used to provide an empty conditioning prompt, which serves as a baseline or neutral reference for the model. It helps in calculating the difference between conditioned and unconditioned states.

cfg

This parameter stands for Classifier-Free Guidance scale. It controls the strength of the guidance applied to the model. The default value is 8.0, with a minimum of 0.0 and a maximum of 100.0. Adjusting this value can significantly impact the adherence of the generated image to the conditioning prompts.

neg_scale

This parameter controls the scale of the negative guidance. It determines how strongly the negative prompts will influence the final output. The default value is 1.0, with a minimum of 0.0 and a maximum of 100.0. Fine-tuning this value helps in balancing the positive and negative influences on the generated image.

PerpNegGuider Output Parameters:

GUIDER

The output of this node is a GUIDER object. This object encapsulates the guided model, which has been conditioned according to the specified positive and negative prompts, as well as the configured guidance scales. The GUIDER can then be used in subsequent steps of the image generation process to produce refined and high-quality outputs.

PerpNegGuider Usage Tips:

  • Experiment with different cfg values to find the optimal balance between adhering to the positive prompts and maintaining the overall quality of the image.
  • Use neg_scale to fine-tune the influence of negative prompts, especially when you notice unwanted features in the generated images.
  • Combine PerpNegGuider with other nodes to create a more complex and nuanced conditioning setup, allowing for greater control over the final output.

PerpNegGuider Common Errors and Solutions:

"Model not provided"

  • Explanation: This error occurs when the model parameter is not supplied.
  • Solution: Ensure that you provide a valid AI model to the model parameter.

"Positive conditioning not provided"

  • Explanation: This error occurs when the positive parameter is missing.
  • Solution: Make sure to include the positive conditioning prompts in the positive parameter.

"Negative conditioning not provided"

  • Explanation: This error occurs when the negative parameter is missing.
  • Solution: Ensure that you provide the negative conditioning prompts in the negative parameter.

"Invalid cfg value"

  • Explanation: This error occurs when the cfg value is out of the acceptable range.
  • Solution: Adjust the cfg value to be within the range of 0.0 to 100.0.

"Invalid neg_scale value"

  • Explanation: This error occurs when the neg_scale value is out of the acceptable range.
  • Solution: Adjust the neg_scale value to be within the range of 0.0 to 100.0.

PerpNegGuider Related Nodes

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