January 2019
Intermediate to advanced
316 pages
8h 16m
English
The encoder network is a convolutional neural network (CNN) that encodes an image (x) to a latent vector (z) or a latent vector representation. Let's start by implementing the encoder network in the Keras framework.
Perform the following steps to implement the encoder network:
input_layer = Input(shape=(64, 64, 3))
# 1st Convolutional Blockenc = Conv2D(filters=32, kernel_size=5, strides=2, padding='same')(input_layer)enc = LeakyReLU(alpha=0.2
Read now
Unlock full access