Skip to content

Commit 359ec71

Browse files
committed
[nnUNet/TF2] Log best metric at the end of training
1 parent 448be1b commit 359ec71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • TensorFlow2/Segmentation/nnUNet/runtime

TensorFlow2/Segmentation/nnUNet/runtime/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def train_step_fn(features, labels, warmup_batch=False):
207207
metrics = {
208208
"train_loss": round(total_train_loss / steps_per_epoch, 5),
209209
"val_loss": round(1 - float(dice_score), 5),
210-
"dice": round(float(dice_metrics.metrics["value"]), 5),
210+
"dice": round(float(dice_metrics.metrics["max"].result()), 5),
211211
}
212212
logger.log_metrics(metrics=metrics)
213213
logger.flush()

0 commit comments

Comments
 (0)