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

Loss value for invalid samples when training #37

Open
jetta opened this issue May 31, 2018 · 1 comment
Open

Loss value for invalid samples when training #37

jetta opened this issue May 31, 2018 · 1 comment

Comments

@jetta
Copy link

jetta commented May 31, 2018

Hi, for this multi-task network, if there is no valid samples for some task in one batch, such as no -2 label for landmark features or no -1 and 1 labels for bbox features. when this happens, what the corresponding loss value should be? nan or 0?
Thanks in advance!

@ilyanelken
Copy link

@jetta Hi, loss function should be calculated according to samples you do have. If you look in the original paper target loss function, this is controlled by beta coefficient (sample type indicator). Ilya

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