Skip to main content
The APG (Adaptive Projected Guidance) node modifies the sampling process by adjusting how guidance is applied during diffusion. It separates the guidance vector into parallel and orthogonal components relative to the conditional output, allowing for more controlled image generation. The node provides parameters to scale the guidance, normalize its magnitude, and apply momentum for smoother transitions between diffusion steps.

Inputs

ParameterDescriptionData TypeRequiredRange
modelThe diffusion model to apply adaptive projected guidance toMODELYes-
etaControls the scale of the parallel guidance vector. Default CFG behavior at a setting of 1 (default: 1.0).FLOATYes-10.0 to 10.0
norm_thresholdNormalize guidance vector to this value, normalization disabled at a setting of 0 (default: 5.0).FLOATYes0.0 to 50.0
momentumControls a running average of guidance during diffusion, disabled at a setting of 0 (default: 0.0).FLOATYes-5.0 to 1.0

Outputs

Output NameDescriptionData Type
modelReturns the modified model with adaptive projected guidance applied to its sampling processMODEL
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): 89e2486bf08f750f82608db93c389f0b25ce0be766f62faa8704d19bd7e41654