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

Setting of deploy #5

Closed
banxia1994 opened this issue Jan 31, 2018 · 7 comments
Closed

Setting of deploy #5

banxia1994 opened this issue Jan 31, 2018 · 7 comments

Comments

@banxia1994
Copy link

Should we save the norm1 layer for deploy? or just get the output from fc5.

@happynear
Copy link
Owner

Here is an example of deployment.
https://github.com/happynear/AMSoftmax/blob/master/prototxt/face_deploy_mirror_normalize.prototxt

I apply the mirror face trick and normalization inside the network. These two operations are implemented using CUDA, so the speed is faster than doing them outside on CPU.

@banxia1994
Copy link
Author

thx

@banxia1994
Copy link
Author

Hi, i trained AMsoftmax with webface which including 10572 subjects, get the accuracy 99.27% when the deploy file without norm1 layer in LFW, and get the accuracy 60% with norm1 layer. but In your example of deploy add the norm layer and some tricks, am i missed something in valid process? or some wrong with my valid code?(not your code)

@happynear
Copy link
Owner

It's weird. The normalize layer just does what it should do: normalization, which you would also do during testing. Maybe you need to check your codes...

@banxia1994
Copy link
Author

@banxia1994
Copy link
Author

sorry to bother you again, Have you released your test code in LFW? thx kindly!

@happynear
Copy link
Owner

We use the same network architecture as SphereFace. You may use SphereFace's experimental settings.

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