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

Add vgg16 benchmark configuration #20

Merged
merged 10 commits into from
Dec 28, 2017
Merged

Conversation

kuke
Copy link
Collaborator

@kuke kuke commented Dec 14, 2017

Resolve #6605
Don't merge. The performance of ResNet and VGG16 based on fluid both seem weird in the test environment. Need to fix that first.

fluid/vgg16.py Outdated
batch_size = 1
for i in y_data.shape:
batch_size = batch_size * i
y_data = y_data.reshape([batch_size, 1])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

->y_data = y_data.reshape([-1, 1])

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

exe.run(inference_program,
feed={"pixel": img_data,
"label": y_data},
fetch_list=[avg_cost] + test_accuracy.metrics)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里可以仿照一下fluid/mnist.py,fluid/resnet.py的方式

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为用了dropout,此处必须用inference program

Copy link
Collaborator

@chengduoZH chengduoZH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kuke kuke merged commit 29e03ec into dzhwinter:master Dec 28, 2017
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

Successfully merging this pull request may close these issues.

Add vgg16 benchmark test configuration
2 participants