FocalLoss
mehran66 opened this issue ยท 1 comments
mehran66 commented
๐ Bug
There are two types of focal loss here (BinaryFocalLoss and FocalLoss):
https://github.com/BloodAxe/pytorch-toolbelt/blob/develop/pytorch_toolbelt/losses/focal.py
Both of these functions are calling the focal_loss_with_logits function, while the second one should use softmax_focal_loss_with_logits.