July 2019
Intermediate to advanced
512 pages
19h 39m
English
We will better understand InfoGANs by implementing them in TensorFlow step by step. We will use the MNIST dataset and learn how the InfoGAN infers the code
automatically based on the generator output. We build an Info-DCGAN; that is, we use convolutional layers in the generator and discriminator instead of a vanilla neural network.
First, we will import all the necessary libraries:
import warningswarnings.filterwarnings('ignore')import numpy as npimport tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datatf.logging.set_verbosity(tf.logging.ERROR)import matplotlib.pyplot as plt%matplotlib ...Read now
Unlock full access