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

Face gender sample code #449

Open
cftang0827 opened this issue Apr 16, 2018 · 3 comments
Open

Face gender sample code #449

cftang0827 opened this issue Apr 16, 2018 · 3 comments

Comments

@cftang0827
Copy link

cftang0827 commented Apr 16, 2018

  • face_recognition version: latest
  • Python version: 3.6
  • Operating System: Ubuntu/Mac

Description

Hi, thanks for ageitgey and dlib's excellent API.

I am doing a face gender classifier by using face_encodings as a feature extractor and scikit-learn SVM. Here is my code. The code and pretrained model is provided, feel free to use it.

What I Did

Sample code

@ageitgey
Copy link
Owner

Thanks for sharing your code. This kind of feature extractor approach could be useful to people doing all sorts of different things.

@MLDSBigGuy
Copy link

Thank you @cftang0827 :) Thats so sweet :) May i know the accuracy of your classifier ?

@cftang0827
Copy link
Author

cftang0827 commented Apr 25, 2018

Hi, here is the evaluation metric

             precision    recall  f1-score   support

          f       0.90      0.99      0.94       159
          m       0.99      0.91      0.95       189

 avg / total       0.95      0.95      0.95       348

And you can also see it on my github, due to the lack of Asian face data, so the accuracy is not so high compare with other DNN approach.

I think the accuracy could be improved by using neuron network, or using image augmentation to gain more data.

Thank you :)

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

3 participants