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

Why MES loss is nan in training? #60

Open
bestl1fe opened this issue Apr 12, 2024 · 3 comments
Open

Why MES loss is nan in training? #60

bestl1fe opened this issue Apr 12, 2024 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed resolved Have been resolved

Comments

@bestl1fe
Copy link
Contributor

When I trained 120 size images to epoch 30, nan appeared and all images turned black. I didn't save the model for each training, so I had to retrain my model.

I think we should add a way to prevent nan.

image

@chairc
Copy link
Owner

chairc commented Apr 12, 2024

Good work. Could you submit a pr for this issue?

@chairc chairc added the help wanted Extra attention is needed label Apr 13, 2024
@chairc
Copy link
Owner

chairc commented Apr 13, 2024

The possible reasons for this problem may include an excessively high learning rate, unstable operations in the loss function, issues with the activation function, etc. Of course, future versions will be updated to include a check for NaN values.

@chairc chairc added the enhancement New feature or request label Apr 13, 2024
@chairc
Copy link
Owner

chairc commented Sep 17, 2024

We submit a function for NaN detection #89

@chairc chairc added the resolved Have been resolved label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed resolved Have been resolved
Projects
None yet
Development

No branches or pull requests

2 participants