January 2019
Intermediate to advanced
316 pages
8h 16m
English
Similarly, to implement the discriminator network, we need to create a Keras model and add the neural network layers to it. The steps required to implement the discriminator network are as follows:
dis_input_shape = (64, 64, 64, 1)dis_filters = [64, 128, 256, 512, 1]dis_kernel_sizes = [4, 4, 4, 4, 4]dis_strides = [2, 2, 2, 2, 1]dis_paddings = ['same', 'same', 'same', 'same', 'valid']dis_alphas = [0.2, 0.2, 0.2, 0.2, 0.2]dis_activations = ['leaky_relu', 'leaky_relu', 'leaky_relu', 'leaky_relu', 'sigmoid']dis_convolutional_blocks = 5
Read now
Unlock full access