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

negative age #22

Closed
zhly0 opened this issue Apr 29, 2019 · 2 comments
Closed

negative age #22

zhly0 opened this issue Apr 29, 2019 · 2 comments

Comments

@zhly0
Copy link

zhly0 commented Apr 29, 2019

Hi,shamangary:
In the age prediction process,the age is negative,is there a way to avoid this?
Thanks。

@shamangary
Copy link
Owner

shamangary commented Apr 29, 2019

Hello @zhly0, in our funcion: https://github.com/shamangary/SSR-Net/blob/master/training_and_testing/SSRNET_model.py#L144
, the final prediction is 'age = (a+b+c)*V'

Considering the index is also controlled by the dynamic values 'index = (i+lambda_local*x[6][:,i])',
it is possible to cause negative values which is not supposed to happen. The solution could be:
(1) set lambda_local = 0 (2) change the initial index 'https://github.com/shamangary/SSR-Net/blob/master/training_and_testing/SSRNET_model.py#L301': from 0 to 1 and do the same in the three for loop.

Note that you need to re-train the model to make these changes work. Cheers.

@zhly0
Copy link
Author

zhly0 commented Apr 29, 2019

Thanks,I will try!

@zhly0 zhly0 closed this as completed Apr 29, 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