January 2019
Intermediate to advanced
316 pages
8h 16m
English
The downsampling blocks have several layers that downsample the images.
Start by adding different layers in the downsampling blocks. The code in this section is pretty explanatory and can be understood easily:
x = Conv2D(64, (4, 4), padding='same', strides=2, input_shape=(256, 256, 3), use_bias=False)(input_layer)x = LeakyReLU(alpha=0.2)(x)x = Conv2D(128, (4, 4), padding='same', strides=2, use_bias=False)(x)x = BatchNormalization()(x)x = LeakyReLU(alpha=0.2)(x)x = Conv2D(256, (4, 4), padding='same', strides=2, use_bias=False)(x)x = BatchNormalization()(x)x = LeakyReLU(alpha=0.2)(x)x = Conv2D(512, (4, 4), padding='same', strides=2, use_bias=False)(x)x = BatchNormalization()(x)x = LeakyReLU(alpha=0.2)(x)x = Conv2D(1024 ...
Read now
Unlock full access