Skip to main content
CFGNorm applies a normalization technique to the classifier-free guidance (CFG) process in diffusion models. It adjusts the scale of the denoised prediction by comparing the norms of the conditional and unconditional outputs, then applies a strength multiplier to control the effect. By default the normalization only attenuates the guidance output, but enabling pre_cfg rescales the combined noise before the sampler’s CFG combine without clamping, which can amplify.

Inputs

Note: This node is marked as experimental.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 427dda498ebda2642489aa2591f063355a77b1e064e0dc7fa8570ed8200c2734