Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When use mobilenet and CIFAR-10 dataset, mobile can not be trained #21

Open
fangliu518 opened this issue Jun 30, 2020 · 0 comments
Open

Comments

@fangliu518
Copy link

fangliu518 commented Jun 30, 2020

Could you please look at my code, if I am using the model correctly?
y = Input(shape=(10,))

mobile_V2 = MobileNet(input_shape =(32,32,3), include_top = False, alpha = 0.5)
input = mobile_V2.input

x = BatchNormalization()(mobile_V2.output)

x = Dropout(rate=0.5)(x)
x = Flatten()(x)

x = Dense(10)(x)
x = BatchNormalization()(x)
print(x.shape)
output = ArcFace(10,regularizer=regularizers.l2(weight_decay))([x,y])
print(output.shape)

model = Model([input,y],output)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant