PIXELBANKv8.2.1
Menu
Back to Diffusion Models Study Plan
Week 7-8

Chapter 7: Conditional Generation

Classifier guidance, classifier-free guidance, text-to-image systems, image-to-image translation, inpainting, and super-resolution.

Chapter Overview

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:

  • Classifier Guidance: Steering generation with external classifier gradients
  • Classifier-Free Guidance: Training a single model for both conditional and unconditional generation
  • Text-to-Image Generation: Architectures behind DALL-E 2, Imagen, and Stable Diffusion
  • Image-to-Image Translation: SDEdit and controlled image transformation
  • Inpainting & Outpainting: Masked diffusion for filling and extending images
  • Super-Resolution: Cascaded diffusion for high-resolution image synthesis

Chapter Roadmap

Click any topic to jump in

1
Classifier Guidance

Using classifier gradients to steer sampling — the original conditional method.

2
Classifier-Free Guidance

Training with label dropout — no external classifier needed.

Conditioning in action
3
Text-to-Image

DALL-E, Imagen, Stable Diffusion — full text-to-image pipelines.

Specialized applications

Editing, inpainting, and upscaling

4
Image-to-Image

SDEdit — starting from noised input for style transfer and editing.

5
Inpainting

Masked generation — filling in or extending images coherently.

6
Super-Resolution

Upscaling with diffusion — generating high-frequency details from low-res input.

Sign up to unlock this chapter

This chapter is part of PixelBank Premium. Create a free account, then upgrade to read the full lesson — concepts, walkthroughs, and exercises.