davidsandberg / facenet

Face recognition using Tensorflow
MIT License
13.83k stars 4.81k forks source link

76,5% Accuracy on LFW #42

Closed Jusya closed 8 years ago

Jusya commented 8 years ago

Hello, I have low accuracy on LFW using this FaceNet implementation. I'm using "All images as gzipped tar file" - the first offered dataset from list of downloadable datasets on http://vis-www.cs.umass.edu/lfw/ Photo attached: lfw_datasets Am I doing something wrong? Which dataset should I use to check accuracy and get 0.919+-0.008? It would be great if you could help we with that issue. Thank you.

ghost commented 8 years ago

training dataset and testing dataset should use same face alignment so LFW dataset and training dataset should use same face alignment and I reproduce the same accurary as the author did

Jusya commented 8 years ago

I understand that) I thought, that the pre-trained model "model-20160506.ckpt-500000" which I use should give 0.919+-0.008 accuracy on LFW as it was mentioned in Performance in README file. However, I got 76,5% accuracy. If pre-trained model was trained on a combination of FaceScrub and CASIA-Webface what should I do with LFW to get high accuracy? Should I download another dataset to check performance, or should I somehow change (e.g. change face alignment) LFW dataset that I've downloaded by myself or with function that is already written in this FaceNet implementation?

Thank you for answering me)

davidsandberg commented 8 years ago

Yes, you need to align the images in the LFW dataset as well. On the wiki there's a description of which LFW files to donwload and how to run the alignment and evaluation. A tricky thing is that dlib does not manage to find faces in all the images, so for those images the deep funneled version of the LFW dataset is used. But it's all described on the wiki.

Jusya commented 8 years ago

Thank you for you help! I will go through the wiki tutorial you've provided)