nasa / delta

Deep Learning for Satellite Imagery
Apache License 2.0
210 stars 65 forks source link

Added epsilon to denominator of dice_coef function to prevent nans #115

Closed mvonpohle closed 3 years ago

mvonpohle commented 3 years ago

This may fix the cause of the nans. I added K.epsilon to the denominator of the dice loss function. It's common to prevent losses from nan-ing if their denominator is 0.