liveBook · Manning

Normal distribution

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

A normal distribution is a continuous probability distribution characterized by a bell-shaped density determined by its mean and variance.

A normal distribution models continuous values with a bell-shaped density. Its mean locates the center, while its variance controls spread; the standard normal distribution has mean zero and unit variance. section 5.1.1 section 9.1.1

In generative image systems, normal distributions provide tractable representations and noise processes:

  • Diffusion models add noise tensors drawn from a standard normal distribution to images over many time steps, gradually approaching standard-normal noise. section 5.1.1
  • Weighted combinations of image values and noise preserve a zero mean and unit variance under the stated normalization assumptions. section 5.1.1
  • VAE encoders output the parameters of a normal distribution rather than mapping each image to one latent-space point. section 9.1.1

From an image to noise

Start with a normalized dog image x₀, add a standard-normal noise tensor at each diffusion step, and obtain xₜ through a weighted image-noise combination. At the final step, xₜ approximates standard-normal noise. section 5.1.1

Figure 5.2 The forward diffusion process

Trace how a clean image becomes progressively noisier across the forward diffusion process. section 5.1.1

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

How deep it goes
Explains standardization, noise addition, weighted combinations, and encoder parameters, while deferring formal VAE treatment.
Examples
Uses a normalized dog image, standard-normal noise tensors, and VAE image representations such as 3 × 512 × 512 and 4 × 64 × 64.
What you can do after
Understand how normal distributions support forward diffusion and probabilistic encoding into latent spaces.
How it connects
Connects normal distributions to diffusion models, denoising, variational autoencoders, Bayesian inference, and latent spaces.

Also explained in

Compare how 16 books explain normal distribution →

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.