ComfyUI > Nodes > Skimmed_CFG > Skimmed CFG

ComfyUI Node: Skimmed CFG

Class Name

Skimmed CFG

Category
model_patches/Pre CFG
Author
Extraltodeus (Account age: 3199days)
Extension
Skimmed_CFG
Latest Updated
2024-08-06
Github Stars
0.08K

How to Install Skimmed_CFG

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

Skimmed CFG Description

Enhances AI model performance through skimming technique for CFG guidance, refining output quality and control.

Skimmed CFG:

The Skimmed CFG node is designed to enhance the performance of AI models by applying a skimming technique to the classifier-free guidance (CFG) process. This node modifies the CFG by selectively adjusting the influence of conditional and unconditional outputs based on a skimming mask. The primary goal is to improve the quality of generated outputs by fine-tuning the balance between the original input and the guided outputs. This technique can help in achieving more refined and controlled results, making it particularly useful for AI artists looking to optimize their models for specific creative tasks.

Skimmed CFG Input Parameters:

model

This parameter represents the AI model that will be modified by the Skimmed CFG node. It is essential for the node to have a model to apply the skimming technique.

Skimming_CFG

This parameter controls the skimming scale for the CFG process. It determines the extent to which the skimming technique is applied to the model's outputs. The value can range from 0.0 to 10.0, with a default value of 5.0. Adjusting this parameter can significantly impact the balance between the original input and the guided outputs, allowing for more precise control over the generated results.

full_skim_negative

This boolean parameter, with a default value of False, determines whether the skimming should be fully applied to the negative (unconditional) outputs. When set to True, it can help in scenarios where a stronger influence of the original input is desired.

disable_flipping_filter

This boolean parameter, with a default value of False, controls whether the flipping filter is disabled during the skimming process. Disabling the flipping filter can affect the skimming mask's behavior, potentially leading to different results in the generated outputs.

Skimmed CFG Output Parameters:

model

The output is the modified AI model with the skimming technique applied. This model is now optimized to produce more refined and controlled results based on the specified Skimming_CFG parameters.

Skimmed CFG Usage Tips:

  • Experiment with different Skimming_CFG values to find the optimal balance for your specific creative task. Higher values may result in more pronounced skimming effects, while lower values may retain more of the original input's influence.
  • Use the full_skim_negative parameter to enhance the influence of the original input when necessary. This can be particularly useful in scenarios where the guided outputs need to be more closely aligned with the original input.
  • Consider disabling the flipping filter if you notice that the skimming mask is not behaving as expected. This can provide more flexibility in the skimming process and potentially lead to better results.

Skimmed CFG Common Errors and Solutions:

ValueError: cond_scale must be greater than 1

  • Explanation: This error occurs when the cond_scale value is less than or equal to 1, which is not supported by the skimming technique.
  • Solution: Ensure that the cond_scale value is greater than 1 before applying the Skimmed CFG node.

RuntimeError: CUDA out of memory

  • Explanation: This error indicates that the GPU does not have enough memory to process the skimming technique.
  • Solution: Try reducing the batch size or the resolution of the input images to free up GPU memory. Alternatively, consider using a GPU with more memory.

TypeError: 'NoneType' object is not subscriptable

  • Explanation: This error occurs when the input model or one of its components is not properly initialized.
  • Solution: Ensure that the input model is correctly loaded and initialized before applying the Skimmed CFG node. Double-check the model's configuration and parameters.

Skimmed CFG Related Nodes

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