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

VGGNet definition is incorrect #8718

Closed
tonyyang-svail opened this issue Mar 2, 2018 · 0 comments
Closed

VGGNet definition is incorrect #8718

tonyyang-svail opened this issue Mar 2, 2018 · 0 comments
Assignees
Labels

Comments

@tonyyang-svail
Copy link

tonyyang-svail commented Mar 2, 2018

The hidden dimension of the last two layers should be 4096 (this gives ~400M model size). Ours is 512(this yields ~70M as model size).

drop = fluid.layers.dropout(x=conv5, dropout_prob=0.5)
fc1 = fluid.layers.fc(input=drop, size=512, act=None)
bn = fluid.layers.batch_norm(input=fc1, act='relu')
drop2 = fluid.layers.dropout(x=bn, dropout_prob=0.5)
fc2 = fluid.layers.fc(input=drop2, size=512, act=None)

This will affect our benchmark with other frameworks.

The definition in other frameworks: https://github.com/ry/tensorflow-vgg16/blob/97a9e1ff663ac7238f986d8b8247f4ab81f83432/vgg16.py#L86-L89 , or https://gist.github.com/baraldilorenzo/07d7802847aaad0a35d3#file-vgg-16_keras-py-L46

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

No branches or pull requests

1 participant