fixup.... again

oops
This commit is contained in:
Starbeamrainbowlabs 2023-01-13 18:47:29 +00:00
parent 7b10f5c5fe
commit 82e01da70b
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -161,7 +161,7 @@ if PATH_CHECKPOINT is None:
if LOSS == "cross-entropy-dice": if LOSS == "cross-entropy-dice":
loss_fn = LossCrossEntropyDice() loss_fn = LossCrossEntropyDice()
elif LOSS == "cross-entropy": elif LOSS == "cross-entropy":
tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True) loss_fn = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True)
else: else:
raise Exception(f"Error: Unknown loss function '{LOSS}' (possible values: cross-entropy, cross-entropy-dice).") raise Exception(f"Error: Unknown loss function '{LOSS}' (possible values: cross-entropy, cross-entropy-dice).")