The notes cover the following:
-
Latent Diffusion Models (LDMs) — A class of generative models that perform the diffusion process in a compressed latent space rather than pixel space, drastically reducing computational cost while preserving image quality.
-
The Training Process — How the model learns to iteratively denoise a noisy latent representation, parameterised by a U-Net trained to predict the added noise at each timestep via a mean-squared-error objective.
-
Perceptual Loss — A loss function that compares high-level feature representations extracted from a pretrained network rather than raw pixels, encouraging outputs that are perceptually similar to the target.
-
Adversarial Loss — A loss term derived from a discriminator network that pushes the generator to produce outputs indistinguishable from real data, commonly used alongside perceptual loss to sharpen reconstructions.
-
Autoencoder Architecture — The encoder-decoder pair (with a learned quantised or KL-regularised bottleneck) that compresses images into a low-dimensional latent space and reconstructs them back to pixel space.
-
LDM Architecture — The full model design: a pretrained autoencoder combined with a conditional U-Net denoiser operating in latent space, optionally conditioned on class labels, text, masks, or other signals.
-
Class Conditioning — A mechanism for steering generation by injecting class-label embeddings into the U-Net (via cross-attention or adaptive group norm), allowing control over which object category is synthesised.
-
Mask Conditioning (Semantic Synthesis) — Using a spatial segmentation mask as a conditioning signal so the model generates an image whose layout matches the provided semantic regions.
-
Super Resolution — Applying the LDM as an upsampler: the model is conditioned on a low-resolution image and learns to hallucinate plausible high-frequency details to produce a high-resolution output.
-
Inpainting — A task where a masked region of an image is regenerated consistently with its surroundings; the LDM is conditioned on the unmasked context and the mask itself.
-
Text Conditioning — Guiding generation with a natural-language prompt by encoding it with a pretrained text encoder (e.g. CLIP or a BERT-like model) and injecting the token embeddings into the U-Net via cross-attention.