mmsegmentation icon indicating copy to clipboard operation
mmsegmentation copied to clipboard

When combine CEloss and DiceLoss, An error occurs !

Open wuji3 opened this issue 1 year ago • 5 comments

mmseg/models/decode_heads/decode_head.py image

when add DiceLoss, the mismatch happens, mmseg/models/losses/dice_loss.py image

wuji3 avatar Jul 16 '23 16:07 wuji3

same question

caj-github avatar Jul 20 '23 05:07 caj-github

TypeError: forward() got an unexpected keyword argument 'ignore_index'

wch313 avatar Sep 02 '23 07:09 wch313

I add ignore_index=255 to def forward and the bug is fixed.

jiady1990 avatar Sep 20 '23 07:09 jiady1990

How did you combine the CE loss and the Dice loss? Can you please guide me with the implementation?

Masrur02 avatar Jan 09 '24 21:01 Masrur02