October 2018
Intermediate to advanced
472 pages
10h 57m
English
In this module, we will include the hyperparameters, pre-process the data, generate synthetic data, train the GAN, train the CNN classifier, and import all of the necessary functions from other modules:
import numpy as npfrom training_plots import upscale, generated_images_plot, plot_training_lossfrom training_plots import plot_generated_images_combinedfrom keras.optimizers import Adamfrom keras import backend as kimport matplotlib.pyplot as pltfrom tqdm import tqdmfrom GAN import img_generator, img_discriminator, dcganfrom keras.datasets import mnistfrom train_mnist import train_mnist%matplotlib inline# Smoothing valuesmooth_real = 0.9# Number of epochsepochs = 5# Batchsizebatch_size = 128# Optimizer for the generator ...
Read now
Unlock full access