December 2018
Intermediate to advanced
268 pages
8h 23m
English
The Generator class initialization looks very similar to what we saw in Chapter 3, My First GAN in Under 100 Lines. There is, however, one difference: the if statement stuck in the middle:
class Generator(object): def __init__(self, width = 28, height= 28, channels = 1, latent_size=100, model_type = 'simple'):
self.W = widthself.H = heightself.C = channelsself.LATENT_SPACE_SIZE = latent_sizeself.latent_space = np.random.normal(0,1, (self.LATENT_SPACE_SIZE,))
Read now
Unlock full access