Skip to content

Commit 05d3555

Browse files
Update supervised_training.py
1 parent 062b956 commit 05d3555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synaptic_reconstruction/training/supervised_training.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def supervised_training(
255255
pass
256256
# If we have an ignore label the loss and metric have to be modified
257257
# so that the ignore mask is not used in the gradient calculation.
258-
if ignore_label is not None:
258+
elif ignore_label is not None:
259259
loss = torch_em.loss.LossWrapper(
260260
loss=torch_em.loss.DiceLoss(),
261261
transform=torch_em.loss.wrapper.MaskIgnoreLabel(

0 commit comments

Comments
 (0)