MobileNetworks icon indicating copy to clipboard operation
MobileNetworks copied to clipboard

model.add()

Open Jacobtom opened this issue 8 years ago • 0 comments

    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!

Jacobtom avatar Dec 07 '17 13:12 Jacobtom