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
I have encountered multiple projects in which I need to output multiple labels for a single voxel. In this case, I'd like to use the DiceCELoss, but forcing it to use the binary cross entropy loss instead of the cross entropy one (since each channel predicted is either on or off independently of the other channels).
In the current state of DiceCELoss, it automatically choose to use either ce/bce based on the number of channels:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have encountered multiple projects in which I need to output multiple labels for a single voxel. In this case, I'd like to use the
DiceCELoss, but forcing it to use the binary cross entropy loss instead of the cross entropy one (since each channel predicted is either on or off independently of the other channels).In the current state of
DiceCELoss, it automatically choose to use either ce/bce based on the number of channels:MONAI/monai/losses/dice.py
Line 804 in e72145c
I wanted to see if there is an officially supported way to achieve the behavior described above before contributing.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions