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

About batchnorm layer para "fix_gamma" #310

Closed
harhar539 opened this issue Aug 1, 2018 · 2 comments
Closed

About batchnorm layer para "fix_gamma" #310

harhar539 opened this issue Aug 1, 2018 · 2 comments

Comments

@harhar539
Copy link

harhar539 commented Aug 1, 2018

I use insightface to retrain mobilefacenet , then get new params.
But when I transfer it into NCNN and validate the infer result ,it's quite different from the infer result by MXNET.
I found "fix_gamma" param in the last bn layer of json file is the key factor.
“fix_gamma” is set to true in the original json file of mobilefacenet,when I change it into false in infer stage, the infer result out by MXNET becomes same with NCNN.
After reading MXNET code ,I guess this param should be set to false when doing infer.
But in insightface code train_softmax.py, the verification func ver_test , this param seems doesnot change to false, thus the verification result is correct?

I just started to learn MXNET, not quite familiar with both MXNET and insightface,maybe made some misunderstanding about this.
Bow~

@nttstar
Copy link
Collaborator

nttstar commented Aug 1, 2018

check this issue: apache/mxnet#9624

@harhar539
Copy link
Author

Thx a lot!

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

2 participants