ComfyUI Node: Automatic CFG - Post rescale only

Authored by Extraltodeus

Created

Updated

374 stars

Category

model_patches/Automatic_CFG/utils

Inputs

model MODEL
subtract_latent_mean BOOLEAN
subtract_latent_mean_sigma_start FLOAT
subtract_latent_mean_sigma_end FLOAT
latent_intensity_rescale BOOLEAN
latent_intensity_rescale_method
  • soft
  • hard
  • range
latent_intensity_rescale_cfg FLOAT
latent_intensity_rescale_sigma_start FLOAT
latent_intensity_rescale_sigma_end FLOAT

Outputs

MODEL

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

Run ComfyUI workflows in the Cloud!

No downloads or installs are required. Pay only for active GPU usage, not idle time. No complex setups and dependency issues

Learn more