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

I'm getting loss as NAN values #2

Open
Guttappa1238 opened this issue Oct 30, 2021 · 4 comments
Open

I'm getting loss as NAN values #2

Guttappa1238 opened this issue Oct 30, 2021 · 4 comments

Comments

@Guttappa1238
Copy link

Hi,

i'm training single custom class using default parameters when i start training i got following results which loss has nan values.

Screenshot from 2021-10-30 16-23-24

please can anyone explain why i'm getting this?

Thanks advance

@anhtuan85
Copy link
Owner

Have you set num_classes = 1?
Then you should check that the data and labels are correct.
And check two loss functions smooth_L1_loss and CrossEntropyLoss

@Guttappa1238
Copy link
Author

I set it correctlty, still getting same NAN values.

Please can you add readme doc that explains how to train custom objects? which will be helpful for others too

@anhtuan85
Copy link
Owner

Hi,
I'm quite busy right now. I will update the code and documentation in the next 1-2 weeks.
Thank you!

@Guttappa1238
Copy link
Author

Hi, I'm quite busy right now. I will update the code and documentation in the next 1-2 weeks. Thank you!

Oh okay no problem.

Thanks for quick response

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