December 2018
Intermediate to advanced
268 pages
8h 23m
English
The generator network is a model based on a few res_net blocks and an output layer. The following steps will build the generator network:
def model(self): # Input input_layer = Input(shape=self.SHAPE) x = Convolution2D(64, 3,3, border_mode='same',activation='relu')(input_layer)
# ResNet Block 1res_x_input_1 = Conv2D(64, (3,3), border_mode='same',activation='relu')(x)x = Convolution2D(64, 3,3, border_mode='same',activation='relu') (res_x_input_1)x = layers.Add()([res_x_input_1,x])x = Activation('relu')(x)
# ResNet ...
Read now
Unlock full access