October 2018
Intermediate to advanced
252 pages
6h 49m
English
Creating a generator consists of implementing two layers of convolutional layers with leaky ReLU activations:
def build_generator(self): model = Sequential() model.add(Dense(128 * 7 * 7, activation="relu", input_dim=self.latent_dim)) model.add(Reshape((7, 7, 128))) model.add(UpSampling2D()) model.add(Conv2D( ...