Dev.to
6/26/2026

Classifier-free guidance above 7.5 oversaturated our product renders
Short summary
Classifier-free guidance above 7.5 pushes SDXL latents outside the model's training distribution, causing blown highlights and oversaturation. CFG rescale (factor 0.7) plus dynamic thresholding reduces oversaturated renders from 18% to under 2% without retraining. Includes production code and sweep methodology for debugging high-guidance artifacts.
- •CFG scales >7.5 cause variance inflation in latents, pushing decoded pixels into saturation and color drift
- •CFG rescale (0.7) combined with dynamic thresholding reduces oversaturated renders from 18% to <2%
- •Provides exact Python implementation, parameter sweep (0.0–1.0), and validation metrics (CLIP similarity, saturation %)
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



