fix crash

This commit is contained in:
Starbeamrainbowlabs 2022-12-09 18:39:27 +00:00
parent e22c0981e6
commit 659fc97fd4
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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,
})