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

How to use dnn_gender_classifier_v1.dat in Python? #39

Open
mowshon opened this issue Jun 11, 2020 · 4 comments
Open

How to use dnn_gender_classifier_v1.dat in Python? #39

mowshon opened this issue Jun 11, 2020 · 4 comments

Comments

@mowshon
Copy link

mowshon commented Jun 11, 2020

Hello, @davisking !

How to load the dnn_gender_classifier_v1.dat in Python ?
I can't find alternative for C++ deserialize in Python.

@mowshon
Copy link
Author

mowshon commented Jun 17, 2020

@davisking can you take a look at https://github.com/mowshon/age-and-gender

I don't have good skill in C++, but did my best for running this code on python.

@arrufat
Copy link
Contributor

arrufat commented Jun 17, 2020

Nice, I've seen that you open images directly from the path. You can get some inspiration from this example to make it work with PIL images or numpy arrays directly.

https://github.com/arrufat/wallyfinder

EDIT:
In particular, these two functions
https://github.com/arrufat/wallyfinder/blob/2a3ddc1af2b676ad434574fecd9be0004c0fcc23/src/wallyfinder.cpp#L8-L42

@mowshon
Copy link
Author

mowshon commented Jun 18, 2020

@arrufat wow! I realy need this! Thank you!

@Cydral
Copy link
Contributor

Cydral commented Feb 14, 2021

@mowshon I'm really glad to see that the models I've released can find a usage... I am working on improving the model for enhancing gender detection for certain ethnic groups that are apparently under-represented in the original database.

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