Skip to content

Fix demo_inference to properly normalize input. #3111

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

Merged
merged 3 commits into from
Jan 5, 2018

Conversation

alexgorban
Copy link
Contributor

Before the fix the demo_inference.py used batch_norm and it did the
normalization of input image implicitly. If at inference time the
batch_norm was disabled the inference produced incorrect results.
This fix does the proper input image normalization and disables the batch_norm
at inference time.

This is second attempt to merge this fix (previous #2978)

Alexander Gorban added 3 commits January 4, 2018 19:51
Before the fix the demo_inference.py used batch_norm and it did the
normalization of input image implicitly. If at inference time the
batch_norm was disabled the inference produced incorrect results.
This fix does the proper input image normalization and disables the batch_norm
at inference time.
Use temp variable for predictions.
@nealwu nealwu merged commit c0cd713 into tensorflow:master Jan 5, 2018
Adrrei pushed a commit to Adrrei/models that referenced this pull request Dec 16, 2018
Fix demo_inference to properly normalize input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants