Extensions/extra_cfgpp
ComfyUI Extension

extra_cfgpp

A ComfyUI extension.

By xxiiyu·Created 2 months ago·Updated 2 months ago· 9
xxiiyu/extra_cfgpp
Nodes
On cloudLocal install
Stars9
Updated2 months ago
Readme

Extra CFG++

Find your new samplers directly selectable in KSampler! (Folder display from rgthree; otherwise find them as extra_cfg_pp/er_sde, etc.)

Works with your favorite RF models too! (Above comparison done in Anima Base v1.0)

CFG++ variants missing in Comfy Core, and/or fixed implementations compatible with modern models such as ZIT, FLUX.2 [klein], Krea, etc.

Lower your CFG scale! Try e.g. cfg = 1.2 and tweak from there. Anything above cfg = 0 can make sense.

Due to taking different implementation approaches, there are observable differences between these and Comfy's cfg_pp samplers, if both exist.

My implementation also makes CFG++ multistage samplers like seeds, dpmpp_2s_ancestral faster than their original versions, since subsequent correction stages / higher-order evaluation points only need unconditional model calls. More concretely:

  • seeds_2, exp_heun_2_x0(_sde), dpmpp_2s_ancestral_RF: only 1.5x slower than euler compared to 2x for their originals
  • seeds_3: only 2x slower compared to 3x

Or more generally/hypothetically, a CFG++ $k$-stage RK-like sampler will only be $(k+1)/2$ times slower than euler, compared to $k$ times for their non-CFG++ versions.

Unfortunately I can't get sa_solver_pece to quite work with this without hurting quality, so that one's stuck at the same speed.

Additionally, CFG++ requires the negative prompt even at cfg = 1. This means you won't enjoy the 2x speed if you do set cfg = 1, like you might expect with other normal samplers.