ComfyUI > Nodes > ComfyUI Easy Use > PreSampling (DynamicCFG)

ComfyUI Node: PreSampling (DynamicCFG)

Class Name

easy preSamplingDynamicCFG

Category
EasyUse/PreSampling
Author
yolain (Account age: 1341days)
Extension
ComfyUI Easy Use
Latest Updated
2024-06-25
Github Stars
0.51K

How to Install ComfyUI Easy Use

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

PreSampling (DynamicCFG) Description

Enhance AI art generation control with dynamic parameter configuration for artistic effects.

PreSampling (DynamicCFG):

The easy preSamplingDynamicCFG node is designed to enhance the flexibility and control of your AI art generation process by allowing dynamic configuration of various parameters before the sampling stage. This node is particularly useful for fine-tuning the behavior of your model to achieve desired artistic effects. By adjusting parameters such as mimic scale, threshold percentile, and configuration modes, you can influence the model's output to better match your creative vision. The node leverages dynamic thresholding techniques to adaptively adjust the model's behavior, ensuring that the generated art maintains high quality and adheres to specified constraints. This makes it an invaluable tool for AI artists looking to experiment with different styles and effects without delving into complex technical details.

PreSampling (DynamicCFG) Input Parameters:

model

This parameter specifies the model to be used for the sampling process. It is essential as it defines the base capabilities and characteristics of the generated output. The model parameter ensures that the node operates on the correct AI model, which is crucial for achieving the desired artistic results.

mimic_scale

This parameter controls the scale of the mimicry effect applied during the sampling process. It ranges from 0.0 to 100.0, with a default value of 7.0. Adjusting this scale can significantly impact the model's ability to replicate certain styles or features, allowing for more precise control over the generated art.

threshold_percentile

This parameter sets the percentile threshold for dynamic thresholding, ranging from 0.0 to 1.0, with a default value of 1.0. It determines the cutoff point for applying certain effects or adjustments, influencing the overall quality and characteristics of the output.

mimic_mode

This parameter defines the mode of mimicry to be applied, based on predefined modes in the DynThresh class. It allows you to select different mimicry behaviors, which can affect how closely the generated art adheres to specific styles or patterns.

mimic_scale_min

This parameter sets the minimum scale for the mimicry effect, ranging from 0.0 to 100.0, with a default value of 0.0. It ensures that the mimicry effect does not fall below a certain threshold, maintaining a baseline level of influence on the generated output.

cfg_mode

This parameter specifies the configuration mode to be used, based on predefined modes in the DynThresh class. It allows for different configurations that can alter the model's behavior during the sampling process, providing additional flexibility and control.

cfg_scale_min

This parameter sets the minimum scale for the configuration effect, ensuring that the configuration adjustments do not fall below a certain level. This helps maintain a consistent influence on the model's behavior, contributing to the stability and predictability of the generated art.

sched_val

This parameter controls the scheduling value for dynamic thresholding, ranging from 0.0 to 100.0, with a default value of 1.0. It influences the timing and application of thresholding adjustments, affecting the overall dynamics of the sampling process.

separate_feature_channels

This parameter allows you to enable or disable the separation of feature channels. Enabling this option can lead to more distinct and varied features in the generated art, while disabling it can result in more blended and cohesive outputs.

scaling_startpoint

This parameter sets the starting point for scaling adjustments, based on predefined start points in the DynThresh class. It determines where the scaling adjustments begin, influencing the initial conditions of the sampling process.

variability_measure

This parameter defines the measure of variability to be used, based on predefined variabilities in the DynThresh class. It allows you to select different methods for measuring and applying variability, which can impact the diversity and uniqueness of the generated art.

interpolate_phi

This parameter controls the interpolation of the phi value, ranging from 0.0 to 1.0, with a default value of 1.0. It affects the smoothness and transition of certain effects, contributing to the overall aesthetic quality of the output.

PreSampling (DynamicCFG) Output Parameters:

MODEL

The output of this node is the modified model, which has been adjusted based on the specified input parameters. This model is now configured to generate art that adheres to the dynamic thresholding and configuration settings applied, ensuring that the output aligns with your creative vision.

PreSampling (DynamicCFG) Usage Tips:

  • Experiment with different mimic_scale and threshold_percentile values to find the perfect balance for your artistic style.
  • Use the separate_feature_channels option to create more distinct and varied features in your generated art.
  • Adjust the cfg_mode and cfg_scale_min parameters to fine-tune the model's behavior and achieve more predictable results.

PreSampling (DynamicCFG) Common Errors and Solutions:

"Invalid model parameter"

  • Explanation: The model parameter provided is not recognized or is incompatible with the node.
  • Solution: Ensure that you are using a valid and compatible model for the sampling process.

"Threshold percentile out of range"

  • Explanation: The threshold_percentile value is outside the acceptable range of 0.0 to 1.0.
  • Solution: Adjust the threshold_percentile value to be within the specified range.

"Mimic scale out of range"

  • Explanation: The mimic_scale value is outside the acceptable range of 0.0 to 100.0.
  • Solution: Adjust the mimic_scale value to be within the specified range.

"Invalid cfg_mode"

  • Explanation: The cfg_mode parameter provided is not recognized or is incompatible with the node.
  • Solution: Ensure that you are using a valid cfg_mode based on the predefined modes in the DynThresh class.

PreSampling (DynamicCFG) Related Nodes

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