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 noticed that when I compute the dice loss on an entire batch the loss is smaller than computing it singularly for each sample and then averaging it. Is this behavior intended?
Expected behavior
Dice loss on batch equivalent to average of dice losses
Environment
Using loss from segmentation_models_pytorch
The text was updated successfully, but these errors were encountered:
🐛 Bug
I noticed that when I compute the dice loss on an entire batch the loss is smaller than computing it singularly for each sample and then averaging it. Is this behavior intended?
Expected behavior
Dice loss on batch equivalent to average of dice losses
Environment
Using loss from segmentation_models_pytorch
The text was updated successfully, but these errors were encountered: