January 2019
Intermediate to advanced
316 pages
8h 16m
English
To implement the generator network, we need to create a Keras model and add the neural network layers. The steps required to implement the generator network are as follows:
z_size = 200gen_filters = [512, 256, 128, 64, 1]gen_kernel_sizes = [4, 4, 4, 4, 4]gen_strides = [1, 2, 2, 2, 2]gen_input_shape = (1, 1, 1, z_size)gen_activations = ['relu', 'relu', 'relu', 'relu', 'sigmoid']gen_convolutional_blocks = 5
input_layer = Input(shape=gen_input_shape)
Read now
Unlock full access