We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eb0624 commit 30d3336Copy full SHA for 30d3336
napari_cellseg3d/code_models/worker_training.py
@@ -484,9 +484,7 @@ def get_loader_func(num_samples):
484
patience=self.config.scheduler_patience,
485
verbose=VERBOSE_SCHEDULER,
486
)
487
- dice_metric = DiceMetric(
488
- include_background=False, reduction="mean"
489
- )
+ dice_metric = DiceMetric(include_background=True, reduction="mean")
490
491
best_metric = -1
492
best_metric_epoch = -1
@@ -664,8 +662,8 @@ def get_loader_func(num_samples):
664
662
665
663
checkpoint_output = [
666
item.numpy()
667
- for batch in checkpoint_output
668
- for item in batch
+ for channel in checkpoint_output
+ for item in channel
669
]
670
checkpoint_output[2] = checkpoint_output[2].astype(
671
np.uint16
0 commit comments