Skip to content

1908 Implement dice_focal loss#1914

Merged
wyli merged 2 commits intoProject-MONAI:masterfrom
yiheng-wang-nv:1904-add-dicefocal-loss
Apr 1, 2021
Merged

1908 Implement dice_focal loss#1914
wyli merged 2 commits intoProject-MONAI:masterfrom
yiheng-wang-nv:1904-add-dicefocal-loss

Conversation

@yiheng-wang-nv
Copy link
Copy Markdown
Contributor

@yiheng-wang-nv yiheng-wang-nv commented Apr 1, 2021

Signed-off-by: Yiheng Wang [email protected]

Fixes #1908 .

Description

In this PR, dice focal loss has been implemented.
In addition, I improved some places for other features:

  • added weight parameters lambda_dice and lambda_ce in DiceCELoss (include unittest)
  • added values check for the parameter weight in FocalLoss (include unittest)
  • fixed a string issue in SENet (the long string with line breaks will introduce extra spaces when printing).

Status

Ready

Types of changes

  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: Yiheng Wang <[email protected]>
@yiheng-wang-nv yiheng-wang-nv mentioned this pull request Apr 1, 2021
5 tasks
@yiheng-wang-nv yiheng-wang-nv requested review from Nic-Ma and wyli April 1, 2021 09:54
Copy link
Copy Markdown
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@wyli wyli enabled auto-merge (squash) April 1, 2021 12:53
@wyli wyli merged commit ba127a2 into Project-MONAI:master Apr 1, 2021
@wyli wyli changed the title 1904 Implement dice_focal loss 1908 Implement dice_focal loss Apr 1, 2021
@wyli wyli mentioned this pull request Apr 1, 2021
nsrivathsa pushed a commit to nsrivathsa/MONAI that referenced this pull request Apr 12, 2021
Signed-off-by: Yiheng Wang <[email protected]>
Signed-off-by: Neha Srivathsa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add DiceFocal loss function

2 participants