pixel-decoder icon indicating copy to clipboard operation
pixel-decoder copied to clipboard

Issue while Training

Open AhmadAmmar opened this issue 6 years ago • 3 comments
trafficstars

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

AhmadAmmar avatar Dec 25 '18 19:12 AhmadAmmar

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

Geoyi avatar Dec 30 '18 18:12 Geoyi

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

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

AhmadAmmar avatar Jan 06 '19 16:01 AhmadAmmar

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.

Geoyi avatar Jan 06 '19 16:01 Geoyi