loss cel + dice: fixup

This commit is contained in:
Starbeamrainbowlabs 2023-01-13 18:09:31 +00:00
parent be77f035c8
commit 0f0b691b5d
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -26,7 +26,7 @@ class LossCrossEntropyDice(tf.keras.losses.Loss):
"""
def __init__(self, **kwargs):
super(LossDice, self).__init__(**kwargs)
super(LossCrossEntropyDice, self).__init__(**kwargs)
def call(self, y_true, y_pred):
y_true = tf.cast(y_true, tf.float32)
@ -34,7 +34,7 @@ class LossCrossEntropyDice(tf.keras.losses.Loss):
return tf.reduce_mean(o)
def get_config(self):
config = super(LossDice, self).get_config()
config = super(LossCrossEntropyDice, self).get_config()
config.update({
})