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

Could the implementation of the age/gender model inference be wrong? #137

Closed
lunzueta opened this issue Jun 4, 2019 · 2 comments
Closed

Comments

@lunzueta
Copy link

lunzueta commented Jun 4, 2019

There is a brief explanation here about how the model was trained that says: "The network is able to recognize age of people in [18, 75] years old range, it is not applicable for children since their faces were not in the training set."

Then, in the code the operation done to get that number is:

ageBlob->buffer().as<float*>()[idx] * 100

I assume that output of ageBlob is a number in the range [0, 1], and if it is then multiplied by 100 it could give an age in the range [0, 100]. Taking into account the description given above, shouldn't it be something like:

18 + (75 - 18) * ageBlob->buffer().as<float*>()[idx]

Could we know more details about the training of this model?

Thanks

@dkurt
Copy link
Contributor

dkurt commented Jun 4, 2019

"it is not applicable" is not "doesn't work". See outputs section:

1. name: "age_conv3", shape: [1, 1, 1, 1] - Estimated age divided by 100.

That means that network has never seen the examples of age < 18. In different words, if your model has been trained to classify cats and dogs it can predict that a fox is a dog with confidence 0.3. That means that model can recognize an animal which looks similar to ones it saw before. But the models is not applicable for foxes.

@lunzueta
Copy link
Author

lunzueta commented Jun 5, 2019

OK, thank you for the clarifications.

@lunzueta lunzueta closed this as completed Jun 5, 2019
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

2 participants