Skip to content

Commit b4b86f8

Browse files
committed
Reverted include_background=True in Dice
1 parent f12577a commit b4b86f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

napari_cellseg3d/code_models/worker_training.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def __init__(
154154
self.config = worker_config
155155

156156
self.dice_metric = DiceMetric(
157-
include_background=True, reduction="mean", get_not_nans=False
157+
include_background=False, reduction="mean", get_not_nans=False
158158
)
159159
self.normalize_function = utils.remap_image
160160
self.start_time = time.time()
@@ -1309,7 +1309,7 @@ def get_patch_loader_func(num_samples):
13091309
else provided_scheduler
13101310
)
13111311
dice_metric = DiceMetric(
1312-
include_background=True, reduction="mean", ignore_empty=False
1312+
include_background=False, reduction="mean", ignore_empty=False
13131313
)
13141314

13151315
best_metric = -1

0 commit comments

Comments
 (0)