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-Age random predictions #899

Closed
RomanSteinberg opened this issue Sep 9, 2019 · 3 comments
Closed

Gender-Age random predictions #899

RomanSteinberg opened this issue Sep 9, 2019 · 3 comments

Comments

@RomanSteinberg
Copy link

RomanSteinberg commented Sep 9, 2019

Hi,
I'm not very familiar with mxnet and I have a problem with gender-age model from this repo. I noticed that it predicts different results depends on some third side code. I tried to make a minimal example. So, it loads model, takes first operation called ‘_minus_scalar0’, which should subtract 127.5 from the input matrix. But it is not! If you look at the screenshot, you can see that it subtracts 127.0 only.

Important. If I comment line 8, the code works correctly and predicts the correct age if I specify fc1 output. I don’t understand why. I reproduced this issue on 3 computers from 4.

  1. What symbol operation corresponds to _minus_scalar? I checked broadcast_minus and broadcast_sub, these are not _minus_scalar operations.
  2. How can I fix incorrect subtraction?
@RomanSteinberg
Copy link
Author

RomanSteinberg commented Sep 10, 2019

@nttstar can you, please, specify what operation corresponds to _minus_scalar? I haven't found any code corresponding to gender-age model architecture.

@nttstar
Copy link
Collaborator

nttstar commented Sep 10, 2019

Just for input pre-processing, it is defined in network symbol.

@RomanSteinberg
Copy link
Author

I found out that this issue is not about gender-age model of this repo. I made a minimal example with only one operation - subtraction and it still works incorrect. So, I posted issue in mxnet repo, because it is primary.

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