December 2018
Intermediate to advanced
268 pages
8h 23m
English
The GAN class will be straightforward to implement—it's essentially the same class we defined back in Chapter 3, My First GAN in Under 100 Lines, and Chapter 4, Dreaming of New Outdoor Structures Using DCGAN.
Here are the steps to create it:
#!/usr/bin/env python3import sysimport numpy as npfrom keras.models import Sequential, Modelfrom keras.optimizers import Adamfrom keras.utils import plot_model
class GAN(object): def __init__(self,discriminator,generator):
self.OPTIMIZER ...
Read now
Unlock full access