Skip to content

Commit da1f149

Browse files
committed
Update worker_training.py
1 parent aab474a commit da1f149

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
@@ -643,6 +643,7 @@ def get_loader_func(num_samples):
643643
) #
644644
post_label = EnsureType()
645645

646+
output_raw = [t for t in pred]
646647
val_outputs = [
647648
post_pred(res_tensor) for res_tensor in pred
648649
]
@@ -667,7 +668,7 @@ def get_loader_func(num_samples):
667668

668669
checkpoint_output.append(
669670
[
670-
val_outputs[0].detach().cpu(),
671+
output_raw[0].detach().cpu(),
671672
val_inputs[0].detach().cpu(),
672673
val_labels[0].detach().cpu(),
673674
]

0 commit comments

Comments
 (0)