You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lr_finder doesn't return the correct suggestion if some losses are nan. The returned loss is the one corresponding to the nan value, which is very big in my case.
To Reproduce
This depends on the dataset. Please see the code sample.
Good catch. I guess that we can not do much about how np.gradient behave but we can filter Nan values before doing the calculation. @binshengliu are you up for doing a PR?
🐛 Bug
lr_finder doesn't return the correct suggestion if some losses are
nan
. The returned loss is the one corresponding to thenan
value, which is very big in my case.To Reproduce
This depends on the dataset. Please see the code sample.
Code sample
I believe this is caused by numpy. The related code should be https://github.com/PyTorchLightning/pytorch-lightning/blob/b84b02400a312240a6429c186cc63514eeb45a82/pytorch_lightning/trainer/lr_finder.py#L325
Output:
Expected behavior
Return the correct suggested loss.
Environment
Additional context
NA
The text was updated successfully, but these errors were encountered: