ComfyUI > Nodes > pre_cfg_comfy_nodes_for_ComfyUI > Pre CFG exponentiation

ComfyUI Node: Pre CFG exponentiation

Class Name

Pre CFG exponentiation

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 exponentiation Description

Modify conditioning data in AI models using exponentiation for nuanced control over generated results and artistic effects.

Pre CFG exponentiation:

The Pre CFG exponentiation node is designed to modify the conditioning data used in AI models by applying an exponentiation operation. This node is particularly useful for fine-tuning the influence of conditioning and unconditioning data on the model's output, allowing for more nuanced control over the generated results. By adjusting the exponentiation factor, you can amplify or diminish the impact of certain conditions, leading to more precise and desired outcomes in your AI-generated art. This node is essential for artists looking to experiment with different levels of conditioning influence to achieve specific artistic effects.

Pre CFG exponentiation Input Parameters:

model

This parameter represents the AI model that will be modified by the node. It is a required input and ensures that the node has a model to apply the exponentiation operation on.

do_on

This parameter determines which parts of the conditioning data the exponentiation operation will be applied to. It has three options: both, cond, and uncond. The default value is both. Selecting both applies the operation to both conditioning and unconditioning data, cond applies it only to the conditioning data, and uncond applies it only to the unconditioning data. This allows for targeted adjustments based on your specific needs.

exponent

This parameter specifies the exponent value used in the exponentiation operation. It is a floating-point number with a default value of 0.8. The minimum value is 0.0, and the maximum value is 10.0, with a step size of 0.05 and rounding to two decimal places. Adjusting this value changes the degree to which the conditioning data is modified, providing fine control over the model's behavior.

Pre CFG exponentiation Output Parameters:

model

The output is the modified AI model with the applied exponentiation operation. This model will now use the adjusted conditioning data during its processing, leading to potentially different and more refined outputs based on the specified exponentiation settings.

Pre CFG exponentiation Usage Tips:

  • Experiment with different exponent values to see how they affect the output. Lower values will have a subtler effect, while higher values can significantly amplify or diminish the conditioning influence.
  • Use the do_on parameter to target specific parts of the conditioning data. For example, if you only want to adjust the unconditioning data, set do_on to uncond.

Pre CFG exponentiation Common Errors and Solutions:

TypeError: 'NoneType' object is not subscriptable

  • Explanation: This error occurs when the input model is not properly provided or is None.
  • Solution: Ensure that a valid model is passed to the node as the model parameter.

ValueError: Exponent value out of range

  • Explanation: This error occurs when the exponent value is set outside the allowed range (0.0 to 10.0).
  • Solution: Adjust the exponent value to be within the specified range.

RuntimeError: Invalid 'do_on' option

  • Explanation: This error occurs when an invalid option is provided for the do_on parameter.
  • Solution: Ensure that the do_on parameter is set to one of the valid options: both, cond, or uncond.

Pre CFG exponentiation 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.