AI Rookies

CFG — Classifier-Free Guidance

Fact

A sampling setting that controls how strongly the model follows the prompt.

In Plain Words

CFG is like a volume knob for a bossy art teacher. Turn it too high, and every sunset starts yelling in neon.

In image AI, it controls how hard the picture follows your prompt. Too much can make stiff or strange images.

Related Concepts

Diffusion
CFG guides Diffusion sampling toward the prompt.

Prompt
The Prompt gives CFG the target to push toward.

Text-to-Image Generation
Text-to-Image Generation uses CFG to balance prompt fit and a natural look.