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

SpherefaceNet-04, SpherefaceNet-06 Release #81

Open
zuoqing1988 opened this issue Apr 19, 2018 · 13 comments
Open

SpherefaceNet-04, SpherefaceNet-06 Release #81

zuoqing1988 opened this issue Apr 19, 2018 · 13 comments

Comments

@zuoqing1988
Copy link

zuoqing1988 commented Apr 19, 2018

I have tested SpherefaceNet-04 and SpherefaceNet-06 with and without BatchNorm.

Training on WebFace,
SpherefaceNet-04 WITHOUT BN can easily achieve ~98.00% (the paper reports 98.2%),
SpherefaceNet-04 WITH BN can easily achieve ~98.20% (fine-tuning 98.35%),
SpherefaceNet-06 WITHOUT BN can easily achieve ~98.50% (the paper doesnot give),
SpherefaceNet-06 WITH BN can easily achieve ~98.70% (fine-tuning 98.80%).

It should be noted that SpherefaceNet-04's forward only costs ~29ms (with BN ~33ms) and SpherefaceNet-06 costs ~49ms (with BN ~55ms), tested on E5-1650V4 3.6GHz, mini-caffe, openblas single thread.

The attachments are the nets with BN.

spherefacenet-04-06.zip

@zuoqing1988
Copy link
Author

zuoqing1988 commented Apr 20, 2018

A modification from dimension 512 to 256.
dim256-SpherefaceNet-04 with BN achieves >97.90% (without fine tuning). Forward costs only 9ms~10ms, tested on E5-1650V4 3.6GHz, mini-caffe, openblas single thread.

An important comparsion:
I have implemented my own C++ version of MTCNN, and cropped images for SeetaFace and Sphereface.
The accuracy of SeetaFace is 97.83%, and single forward costs ~110ms.
The accuracy of dim256-SphereFaceNet04 is 97.78% (with flipping 97.93%), single forward costs ~9ms (twice ~19ms)

https://github.com/seetaface/SeetaFaceEngine

The attachments are the dim256-SpherefaceNet04

dim256-SpherefaceNet04.zip

@happynear
Copy link

happynear commented Apr 20, 2018

Wonderful work. I've tried the SpherefaceNet-06 with BN yesterday. I modified the fc dimension to 128 and got 98.76% (with face mirror).

@zuoqing1988
Copy link
Author

zuoqing1988 commented Apr 20, 2018

@happynear Thanks.
Currently I am tring to modify all conv and fc laryers to half. It can reduce the forward time to only 25%-30% of the original.

@silcowitz
Copy link

Are you training these model from scratch/random weights? or using some form of pretraining?

@wy1iu
Copy link
Owner

wy1iu commented Apr 26, 2018

Thanks for the contribution!

@zuoqing1988
Copy link
Author

@silcowitz without '-weights' or '-snapshot'

@twmht
Copy link

twmht commented Jul 3, 2018

@zuoqing1988

Can you share the training log of SpherefaceNet-06?

@zuoqing1988
Copy link
Author

@hrlqq
Copy link

hrlqq commented Aug 5, 2018

98% + on which database?

@zuoqing1988
Copy link
Author

@hrlqq LFW

@lwk98
Copy link

lwk98 commented Oct 7, 2018

I have trained sphereface06 , but loss no longer converges at 10%. I tried to change the lambda_min to 10, it still has no effect. i don't have a good graphics card (gtx1060), can you give me some advice about how to adjust parameters? Thank you very much! @wy1iu @zuoqing1988

@zuoqing1988
Copy link
Author

@lwk98 You can find much better models (mxnet or caffe) here

@serengil
Copy link

Could those prototxt files be incompatible with the caffemodel shared in the readme file (https://drive.google.com/open?id=0B_geeR2lTMegb2F6dmlmOXhWaVk )?

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

8 participants