Open nyck33 opened 4 years ago
What does happen if you simply run demo.py? The same results?
No, when I ran demo.py, it was predicting correctly. I did not have to reverse the >
sign. But I'll try again.
Hello, Have you evaluated the gender on wiki datasets ? I was very confused because I didn't get good results.
Hi Yu-san,
Thanks for this repo. I have a question regarding this snippet in demo.py
"M" if predicted_genders[i][0] < 0.5 else "F")
I am predicting on one face only so my code is:I'm getting this output showing all female: gender 0.7589111924171448 gender 0.6748817563056946 gender 0.7280391454696655 gender 0.7113814353942871 gender 0.6321226954460144 gender 0.6755571961402893 gender 0.655595600605011 gender 0.6332910060882568 gender 0.665791392326355 gender 0.6619336009025574 frame 10, 2 percent done gender 0.6297609210014343 gender 0.6310742497444153 gender 0.6388582587242126 gender 0.6477266550064087 gender 0.6689814329147339 gender 0.6472148299217224 gender 0.6857687830924988 gender 0.6730141639709473 gender 0.675566554069519 gender 0.6839122772216797 gender 0.6692551374435425 gender 0.6698795557022095 gender 0.6731051802635193 gender 0.6431819796562195 gender 0.7187308073043823 gender 0.7388319373130798
For video of myself here face detected with mtcnn which bbox I think is similar to dlib. https://youtu.be/QMs9DZk0IOs
With the sign reversed, ie.
if predicted_gender[0][0] > 0.5
, gender prediction is almost perfect even on profile: https://www.youtube.com/watch?v=4yxAbq-3avk&feature=youtu.beSo I don't understand how I'm being detected as female because when I ran your demo.py on webcam on myself, it detected me as male 100% but it was not good on profile face due to dlib limitations.
My function is below but I think the above snippet is enough: