ComfyUI Node: Automatic CFG - Excellent attention

Authored by Extraltodeus

Created

Updated

427 stars

Run Automatic CFG - Excellent attention without installing ComfyUI

This node already runs on ComfyICU. Open it in the browser, hit run, and you're billed for GPU seconds — not for setup, and not while you're idle.

Category

model_patches/Automatic_CFG

Inputs

model MODEL
Auto_CFG BOOLEAN
patch_multiplier FLOAT
patch_cond BOOLEAN
patch_uncond BOOLEAN
light_patch BOOLEAN
mute_self_input_layer_8_cond BOOLEAN
mute_cross_input_layer_8_cond BOOLEAN
mute_self_input_layer_8_uncond BOOLEAN
mute_cross_input_layer_8_uncond BOOLEAN
uncond_sigma_end FLOAT
bypass_layer_8_instead_of_mute BOOLEAN
save_as_preset BOOLEAN
preset_name STRING
attn_mod_for_positive_operation ATTNMOD
attn_mod_for_negative_operation ATTNMOD

Outputs

MODEL

STRING

Extension: ComfyUI-AutomaticCFG

My own version 'from scratch' of a self-rescaling CFG. It isn't much but it's honest work. TLDR: set your CFG at 8 to try it. No burned images and artifacts anymore. CFG is also a bit more sensitive because it's a proportion around 8. Low scale like 4 also gives really nice results since your CFG is not the CFG anymore. Also in general even with relatively low settings it seems to improve the quality.

Authored by Extraltodeus

Looking for a different node?

Run Automatic CFG - Excellent attention without installing ComfyUI

This node already runs on ComfyICU. Open it in the browser, hit run, and you're billed for GPU seconds — not for setup, and not while you're idle.

Learn more