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

Gender missclassification #27

Open
adelfuchs opened this issue Jun 11, 2018 · 7 comments
Open

Gender missclassification #27

adelfuchs opened this issue Jun 11, 2018 · 7 comments

Comments

@adelfuchs
Copy link

Hi Gil,

I'm trying to predict gender with your gender model. I have a bunch of images and their true classifications.
I'm predicting gender with your model and get something like 30% failure.

This is how I predict a single image:
input_image=caffe.io.load_image(image_path)
input_image = skimage.transform.resize(input_image, (256, 256))
imgplot = plt.imshow(input_image) // I'm able to see the image and it looks fine
pred=gender_net.predict([input_image])

I get the same results also without resizing.
Am I missing something?

Thanks,
Adel

@ireqhawk
Copy link

ireqhawk commented Jun 13, 2018

i think maybe you have not crop face from the image @adelfuchs

@adelfuchs
Copy link
Author

Images are cropped. They were taken from here:
https://github.com/yu4u/age-gender-estimation (imdb database).
Does the size of the images matter?

@GilLevi
Copy link
Owner

GilLevi commented Jun 29, 2018

Hi Adel,

Thank you for your interest in our work.

If you are getting 30% error then you are actually getting 70% success which is not bad at all (since this is a binary problem). My guess is that the labels are reversed. Can you share your code?

Best,
Gil

@td042
Copy link

td042 commented Jul 5, 2018

Hi Gil,
thank you for your great work! I get a similar problem with missclassifications. I testest your example notebook file on Adience benchmark and could achieve almost your reported results. But when I test it on IMDB-WIKI dataset I only could achieve 56% accuracy. I have no idea if I did something wrong. Does the image has to be cropped to the face region or should I input the whole image into the network?

Thanks,
Theresa

@GilLevi
Copy link
Owner

GilLevi commented Jul 7, 2018

Hi @td042 ,

Thank you for your interest in our work. Indeed the images has to be cropped to the face region (and preferably aligned).

Best,
Gil

@PawelGD
Copy link

PawelGD commented Jan 23, 2019

@GilLevi Can you provide the code and models that you used to detect/align/crop the images for the experiments reported in your paper?

@GilLevi
Copy link
Owner

GilLevi commented Feb 9, 2019

@PawelGD , the code for alignment is given here: https://talhassner.github.io/home/projects/Adience/Adience-code.html#inplanealign

The details regarding detection, cropping and alignment are described in the original paper presented the dataset : Eidinger, Eran, Roee Enbar, and Tal Hassner. "Age and gender estimation of unfiltered faces." IEEE Transactions on Information Forensics and Security 9.12 (2014): 2170-2179.‏

https://www.openu.ac.il/home/hassner/Adience/EidingerEnbarHassner_tifs.pdf

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

5 participants