liveBook · Manning

Noise

As explained in Build a Text-to-Image Generator (from Scratch)

Noise is random variation added to an image that obscures its original visual information.

Noise is random variation added to an image, progressively obscuring its visual information. In diffusion models, controlled noise transforms a clean image into random noise and supports a learnable reverse denoising process. section 5.1.1 section 1.3.1

Diffusion uses noise in a sequence of practical stages:

  • Start with a clean image at time step 0 and add small amounts of normally distributed noise through successive time steps. section 1.3.1
  • Reach approximately pure random noise at the final step, typically using 1,000 training steps. section 5.1.1
  • Train a denoising U-Net to predict the noise injected into each noisy image, using the actual noise as the target. section 5.3.1
  • Generate images by starting from random noise and iteratively removing noise, optionally conditioning each step on text. section 10.2.1 section 7.4

Visualizing a noise schedule

Take four flower images and display them at time steps 0, 200, 400, 600, 800, and 1,000. The images become progressively noisier until the final column shows pure random noise. section 7.2.2

Figure 5.2 The forward diffusion process

Trace the forward diffusion process from a clean dog image through increasingly noisy states to pure noise. section 5.1.1

How Build a Text-to-Image Generator (from Scratch) covers it

How deep it goes
Explains noise schedules, normal distributions, time steps, reparameterization, prediction targets, and iterative denoising, with implementation examples.
Examples
Uses dog, clothing-item, flower, lion, and tiger images to demonstrate noise addition, prediction, denoising, and text-conditioned generation.
What it assumes
Assumes familiarity with images and neural networks while introducing time steps, noise schedules, and the forward-reverse diffusion relationship.
What you can do after
Build it from scratch by adding scheduled noise, training a denoising U-Net, and sampling images through reverse diffusion.
How it connects
Connects noise with forward diffusion, reverse diffusion, denoising, U-Net, DDPM, DDIM, latent diffusion, and Stable Diffusion.

Also explained in

Compare how 11 books explain noise →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Text-to-Image Generator (from Scratch). The section links point to the parts of the book it draws on.