ComfyUI > Nodes > pre_cfg_comfy_nodes_for_ComfyUI > Pre CFG subtract mean

ComfyUI Node: Pre CFG subtract mean

Class Name

Pre CFG subtract mean

Category
model_patches/Pre CFG
Author
Extraltodeus (Account age: 3267days)
Extension
pre_cfg_comfy_nodes_for_ComfyUI
Latest Updated
2024-09-23
Github Stars
0.03K

How to Install pre_cfg_comfy_nodes_for_ComfyUI

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

Pre CFG subtract mean Description

Normalize conditioning data mean before CFG for improved AI image quality.

Pre CFG subtract mean:

The Pre CFG subtract mean node is designed to enhance the quality of your AI-generated images by normalizing the mean of the conditioning data before the classifier-free guidance (CFG) process. This node ensures that the mean value of the conditioning data is subtracted, which can help in reducing biases and improving the overall consistency of the generated images. By applying this normalization step, the node aims to produce more balanced and visually appealing results, making it a valuable tool for AI artists looking to refine their outputs.

Pre CFG subtract mean Input Parameters:

model

This parameter specifies the model to which the mean subtraction will be applied. It is essential for defining the context in which the node operates, ensuring that the correct model is used for the normalization process.

start_at_sigma

This parameter determines the sigma value at which the mean subtraction process starts. It is a floating-point value with a default of 15.0, a minimum of 0.0, and a maximum of 1000.0. Adjusting this value allows you to control the point in the denoising process where the mean subtraction begins, which can impact the final image quality.

end_at_sigma

This parameter sets the sigma value at which the mean subtraction process ends. It is a floating-point value with a default of 1.0, a minimum of 0.0, and a maximum of 1000.0. By configuring this value, you can define the range within which the mean subtraction is active, providing finer control over the normalization process.

enabled

This boolean parameter enables or disables the mean subtraction process. By default, it is set to True. When enabled, the node performs the mean subtraction; when disabled, the node bypasses this step, allowing you to easily toggle the effect on and off.

Pre CFG subtract mean Output Parameters:

model

The output parameter is the model with the mean subtraction applied. This model has undergone the normalization process, resulting in potentially improved image quality and consistency. The output model can then be used in subsequent steps of your AI art generation workflow.

Pre CFG subtract mean Usage Tips:

  • Adjust the start_at_sigma and end_at_sigma values to fine-tune the range within which the mean subtraction is applied. This can help you achieve the desired balance and consistency in your generated images.
  • Use the enabled parameter to quickly compare the effects of the mean subtraction by toggling it on and off. This can help you determine whether the normalization process is beneficial for your specific use case.

Pre CFG subtract mean Common Errors and Solutions:

"Model not specified"

  • Explanation: The model parameter is missing or not correctly specified.
  • Solution: Ensure that you provide a valid model as input to the node.

"Invalid sigma values"

  • Explanation: The start_at_sigma or end_at_sigma values are out of the acceptable range.
  • Solution: Check that the sigma values are within the specified range (0.0 to 1000.0) and adjust them accordingly.

"Mean subtraction not applied"

  • Explanation: The enabled parameter is set to False, so the mean subtraction process is bypassed.
  • Solution: Set the enabled parameter to True to activate the mean subtraction process.

Pre CFG subtract mean Related Nodes

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