Classifier guidance, classifier-free guidance, text-to-image systems, image-to-image translation, inpainting, and super-resolution.
Unconditional diffusion models generate impressive samples, but most practical applications require control over what is generated. Conditional generation bridges this gap by steering the diffusion process toward outputs that match a given specification---a text prompt, a class label, a reference image, or a masked region to fill. This chapter explores the full spectrum of conditioning techniques that transformed diffusion models from curiosity to creative powerhouse.
The journey begins with classifier guidance, which demonstrated that gradient signals from an external classifier could dramatically improve sample quality and class adherence. Classifier-free guidance then eliminated the need for a separate classifier entirely, becoming the dominant conditioning mechanism in modern systems. These guidance techniques underpin every major text-to-image model: DALL-E 2, Imagen, and Stable Diffusion each combine guidance with different text encoders and architectural choices to translate natural language into pixels.
Beyond text-to-image, conditional diffusion enables a rich family of image manipulation tasks. Image-to-image translation lets you transform existing images while preserving structure. Inpainting and outpainting fill or extend images seamlessly using masked diffusion. Super-resolution cascades push outputs to megapixel resolutions through iterative upsampling. Together, these techniques form the foundation of modern AI-powered image editing.
This chapter covers:
Click any topic to jump in
Using classifier gradients to steer sampling — the original conditional method.
Training with label dropout — no external classifier needed.
DALL-E, Imagen, Stable Diffusion — full text-to-image pipelines.
Editing, inpainting, and upscaling
SDEdit — starting from noised input for style transfer and editing.
Masked generation — filling in or extending images coherently.
Upscaling with diffusion — generating high-frequency details from low-res input.
This chapter is part of PixelBank Premium. Create a free account, then upgrade to read the full lesson — concepts, walkthroughs, and exercises.