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

when traing, the loss becomes nan. why? #38

Open
zhouwy19 opened this issue Jan 26, 2020 · 2 comments
Open

when traing, the loss becomes nan. why? #38

zhouwy19 opened this issue Jan 26, 2020 · 2 comments

Comments

@zhouwy19
Copy link

image

@abhisingh977
Copy link

Hey,
Are you using the same dataset?
If not then this is happening because the lr is high for your dataset. Reduce the lr.
As soon as the loss reaches around thousands it starts showing nan or inf.

Go to train.py and reduce the learning rate(lr).

@tripathiarpan20
Copy link

Upon some tracing I found out that MultiboxLoss returns that nan value, maybe this is the same issue as #54

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

3 participants