May 2019
Intermediate to advanced
272 pages
7h 19m
English
In this section, we provide a list of libraries and methods that will be used in our first GAN implementation. The following code block is the list of libraries to be used:
import matplotlibmatplotlib.use("Agg")import matplotlib.pylab as pltfrom math import ceilimport numpy as npfrom keras.models import Sequential, Modelfrom keras.layers import Input, ReLU, LeakyReLU, Densefrom keras.layers.core import Activation, Reshapefrom keras.layers.normalization import BatchNormalizationfrom keras.layers.convolutional import Conv2D, Conv2DTransposefrom keras.layers.core import Flattenfrom keras.optimizers import SGD, Adamfrom keras.datasets import cifar10from keras import initializers
Lines one through four import libraries and methods that ...
Read now
Unlock full access