MobileNetworks
MobileNetworks copied to clipboard
model.add()
x = GlobalAveragePooling2D()(x)
x = Reshape(shape, name='reshape_1')(x)
x = Dropout(dropout, name='dropout')(x)
x = Conv2D(classes, (1, 1), padding='same', name='conv_preds')(x)
x = Activation('softmax', name='act_softmax')(x)
x = Reshape((classes,), name='reshape_2')(x)
If I use the sequential manner, how to change these code?for example: x = GlobalAveragePooling2D()(x) corresponds to model.add(AveragePooling2D(pool_size=(7,7),strides=(1,1))),but for x = Reshape(shape, name='reshape_1')(x) and x = Conv2D(classes, (1, 1), padding='same', name='conv_preds')(x)? Please!thank you so much!