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

Discrepancy in the parameters used for batch normalisation between pytorch and keras #74

Open
zaccharieramzi opened this issue Dec 6, 2019 · 0 comments

Comments

@zaccharieramzi
Copy link

zaccharieramzi commented Dec 6, 2019

The parameters used for batch normalization are not specified in the original paper.

I don't know how batch norm works in Matlab (I have tried to read the codes but it's very difficult to me), so I tried looking in keras. The parameters used seemed very odd (in addition the batch normalisation is involved in a code mess), so I looked in pytorch, and saw that they are different.
In keras the momentum is 0.0 or 0.1 depending on where you look, and in pytorch the momentum is 0.95.

Note that this differs from the original unofficial keras implementation.

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