Chapter 2. Intro to generative modeling with autoencoders
Listing 2.2. Setting hyperparameters
Listing 2.3. Creating the encoder
Listing 2.4. Creating the sampling helper function
Listing 2.5. Writing the decoder
Listing 2.6. Combining the model
Chapter 3. Your first GAN: Generating handwritten digits
Listing 3.1. Import statements
Listing 3.2. Model input dimensions
Listing 3.5. Building and compiling the GAN
Listing 3.6. GAN training loop
Chapter 4. Deep Convolutional GAN
Listing 4.1. Import statements
Listing 4.2. Model input dimensions
Listing 4.4. DCGAN Discriminator
Listing 4.5. Building and compiling the DCGAN
Listing 4.6. DCGAN training loop
Chapter 6. Progressing with GANs
Listing 6.1. Progressive growing and smooth upscaling
Listing 6.2. Mini-batch standard deviation
Listing 6.3. Equalized learning rate
Chapter 7. Semi-Supervised GAN
Listing 7.1. Import statements
Listing 7.2. Model input dimensions
Listing 7.3. Dataset for training and testing
Listing 7.5. SGAN Discriminator
Listing 7.6. SGAN Discriminator: supervised
Listing 7.7. SGAN Discriminator: unsupervised
Listing 7.8. Building the models
Listing 7.9. SGAN training algorithm
Listing 7.10. Training the model
Chapter 8. Conditional GAN
Listing 8.1. Import statements
Listing 8.2. Model input dimensions
Listing 8.4. CGAN Discriminator
Listing 8.5. Building and compiling the CGAN model
Chapter 9. CycleGAN
Listing 9.1. Import all the things
Listing 9.2. Starting the CycleGAN class
Listing 9.3. Building the networks
Listing 9.4. Building the generator
Chapter 10. Adversarial examples
Listing 10.1. Our trusty imports