Skip to content

Commit 4490b01

Browse files
committed
Update worker_training.py
1 parent 6a18d29 commit 4490b01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

napari_cellseg3d/code_models/worker_training.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
PRETRAINED_WEIGHTS_DIR,
4545
LogSignal,
4646
QuantileNormalizationd,
47+
RemapTensor,
4748
TrainingReport,
4849
WeightsDownloader,
4950
)
@@ -639,7 +640,7 @@ def get_loader_func(num_samples):
639640
# TODO : more parameters/flexibility
640641
post_pred = Compose(
641642
[
642-
# RemapTensor(new_max=1, new_min=0),
643+
RemapTensor(new_max=1, new_min=0),
643644
AsDiscrete(threshold=0.5), # needed ?
644645
EnsureType(),
645646
]

0 commit comments

Comments
 (0)