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

Issue while Training #5

Open
AhmadAmmar opened this issue Dec 25, 2018 · 3 comments
Open

Issue while Training #5

AhmadAmmar opened this issue Dec 25, 2018 · 3 comments

Comments

@AhmadAmmar
Copy link

AhmadAmmar commented Dec 25, 2018

Loss and accuracy parameters just say NaN

loss: nan - dice_coef: nan - dice_coef_rounded: nan - binary_crossentropy: nan - val_loss: nan - val_dice_coef: nan - val_dice_coef_rounded: nan - val_binary_crossentropy: nan

screenshot from 2018-12-26 00-33-52

@Geoyi
Copy link
Owner

Geoyi commented Dec 30, 2018

@AhmadAmmar, can you make sure that you're reading the data from the correct path?

@AhmadAmmar
Copy link
Author

Yes, please see this "invalid value encountered in true_divide" error.

screenshot from 2019-01-06 21-28-04

@Geoyi
Copy link
Owner

Geoyi commented Jan 6, 2019

It may cause by an incorrect image you read in when it's at the batch normalization, see this stackoverflow issue.

I've seen this error before and vaguely remember that I did not read the dataset correctly, @AhmadAmmar. Please make sure either your RGB or label images aren't empty and can be viewed correctly.

And the label/mask data need to be in png format, see this line. If you want to use other image formats, please use this function in the utils.

Please also make sure your label data can be read in (256, 256) mentioned in another issue.

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