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
- 2.5. Image Pyramids, for the subband decompositions used by texture models.
- 9.3. Texture Histograms, for marginal and joint texture statistics.
- 5.2.4. CNNs, for feature maps and pretrained networks.
- 10.1. Generative Adversarial Networks, for the adversarial game behind pix2pix and CycleGAN.
- 6.4. U-Net, for the encoder-decoder used in image-to-image networks.
- 10.3.2. Flow Matching and 10.3.2. Classifier-Free Guidance, for sampling and guidance in flow models.
Contents
- 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.
- 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.
- 8.3. Image Colorization: predict color from lightness; why L2 regression gives dull colors and how classification fixes it.
- 8.4. Pix2Pix: image-to-image translation from paired data with a conditional GAN and an L1 term.
- 8.5. CycleGAN: translation between unpaired collections with two generators and a cycle-consistency loss.
- 8.6. Flow-Based Image Editing: SDEdit-style editing, text-guided edits, visual anagrams and hybrid images with a pretrained flow model.
Recommended Path
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.