You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
It seems that there is a bug in calling a DiceCELoss object in the training loop.
The following code will fail with this error: "TypeError: 'DiceCELoss' object is not callable"
loss_function = monai.losses.DiceCELoss() # before the training
# ....
loss = loss_function(outputs, labels) # in the training loop
I have installed MONAI from git and the same code works if I simply call DiceLoss instead of DiceCELoss.
The text was updated successfully, but these errors were encountered:
wyli
added a commit
to wyli/MONAI
that referenced
this issue
Jan 29, 2021
Hello.
It seems that there is a bug in calling a DiceCELoss object in the training loop.
The following code will fail with this error: "TypeError: 'DiceCELoss' object is not callable"
I have installed MONAI from git and the same code works if I simply call DiceLoss instead of DiceCELoss.
The text was updated successfully, but these errors were encountered: