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 matplotlib
matplotlib.use("Agg")
import matplotlib.pylab as plt
from math import ceil
import numpy as np
from keras.models import Sequential, Model
from keras.layers import Input, ReLU, LeakyReLU, Dense
from keras.layers.core import Activation, Reshape
from keras.layers.normalization import BatchNormalization
from keras.layers.convolutional import Conv2D, Conv2DTranspose
from keras.layers.core import Flatten
from keras.optimizers import SGD, Adam
from keras.datasets import cifar10
from keras import initializers
Lines one through four import libraries and methods that are necessary for plotting.
Line five imports numpy, which is used for overall data operations, including generation, manipulation...