mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 01:12:59 +00:00
fixup.... again
oops
This commit is contained in:
parent
7b10f5c5fe
commit
82e01da70b
1 changed files with 1 additions and 1 deletions
|
@ -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).")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue