The space of all images is enormous. A uniform random sample from it, such as the color image np.random.rand(100, 100, 3), looks like noise. Meaningful images occupy a thin subset of this space, often described as a manifold of natural images. Image generation methods model that subset and produce new points on it, starting either from noise or from an input image. This section covers the computer-vision methods, from statistical texture models through image translation with GANs to editing with a pretrained flow model.

Prerequisites

Contents

  1. 8.1. Parametric Texture Synthesis: start from noise and match texture statistics, from Heeger and Bergen’s pyramid histograms to Gatys’s CNN Gram matrices.
  2. 8.2. Neural Style Transfer: render a photo’s content in an artwork’s style with a content loss and a Gram-matrix style loss.
  3. 8.3. Image Colorization: predict color from lightness; why L2 regression gives dull colors and how classification fixes it.
  4. 8.4. Pix2Pix: image-to-image translation from paired data with a conditional GAN and an L1 term.
  5. 8.5. CycleGAN: translation between unpaired collections with two generators and a cycle-consistency loss.
  6. 8.6. Flow-Based Image Editing: SDEdit-style editing, text-guided edits, visual anagrams and hybrid images with a pretrained flow model.

Read 8.1. Parametric Texture Synthesis first, since its picture of noise moved onto a set of acceptable images returns in 8.6. Flow-Based Image Editing. Read 8.3. Image Colorization before 8.4. Pix2Pix, because pix2pix answers the loss-design problem that colorization raises. 8.5. CycleGAN builds directly on pix2pix.