mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-22 22:25:01 +00:00
fix crash
This commit is contained in:
parent
e22c0981e6
commit
659fc97fd4
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ class LossDice(tf.keras.losses.Loss):
|
|||
smooth (float): The batch size (currently unused).
|
||||
"""
|
||||
def __init__(self, smooth=100, **kwargs):
|
||||
super(LossCrossentropy, self).__init__(**kwargs)
|
||||
super(LossDice, self).__init__(**kwargs)
|
||||
|
||||
self.param_smooth = smooth
|
||||
|
||||
|
@ -46,7 +46,7 @@ class LossDice(tf.keras.losses.Loss):
|
|||
return dice_coef_loss(y_true, y_pred, smooth=self.param_smooth)
|
||||
|
||||
def get_config(self):
|
||||
config = super(LossCrossentropy, self).get_config()
|
||||
config = super(LossDice, self).get_config()
|
||||
config.update({
|
||||
"smooth": self.param_smooth,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue