Skip to main content
CFGNorm adjusts how classifier-free guidance (CFG) is applied in diffusion models by comparing the size (norm) of the conditional prediction with the guided prediction and rescaling the result. A strength value controls how much of the adjustment is applied. By default the scaling only attenuates the guidance output, while enabling pre_cfg rescales the combined noise before the sampler’s CFG combine without clamping, which can amplify the result.

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