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
{{ message }}
Repository navigation
Missing alpha parameter of Focal loss in DiceFocalLoss #7682
Describe the bug
The available class monai.losses.DiceFocalLoss is missing the alpha parameter for Focal loss. Is this a result of some design choice or just got overlooked in the implementation?
Expected behavior alpha parameter should be passed to the monai.losses.FocalLoss or have the reason for its absence documented.
I mean the argument passed down to the FocalLoss class during construction, which results in an alpha-balanced Focal loss as per the paper. I believe this argument should also be available in the DiceFocalLoss since it's effectively just a wrapper around the two losses.
Activity
KumoLiu commentedon Apr 25, 2024
Hi @dkalsan, what does
alphamean here, can you be more explicit? Thanks.dkalsan commentedon Apr 25, 2024
I mean the argument passed down to the FocalLoss class during construction, which results in an alpha-balanced Focal loss as per the paper. I believe this argument should also be available in the DiceFocalLoss since it's effectively just a wrapper around the two losses.
From the docstring of FocalLoss:
Add alpha parameter to DiceFocalLoss (Project-MONAI#7841)