Skip to content

Conversation

@wyli
Copy link
Contributor

@wyli wyli commented Oct 28, 2020

closes #807

Description

  • adds smooth_nr/smooth_dr for the numerators and denominators
  • adds a flag for the 'batchwise' reduction

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • New tests added to cover the changes.
  • Quick tests passed locally by running ./runtests.sh --quick.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@wyli wyli force-pushed the 807-flexible-dice-loss branch from 1153952 to 2227a07 Compare October 28, 2020 16:55
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
@wyli wyli force-pushed the 807-flexible-dice-loss branch from 2227a07 to db73f0d Compare October 28, 2020 17:12
@ericspod
Copy link
Member

Looks good to me, @martaranzini ?

@martaranzini
Copy link
Collaborator

Looks all good to me as well! Perhaps it could be worth adding a test case where the two smooth terms are different, say smooth_nr=0 and smooth_dr=1e-5?

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
@ericspod ericspod merged commit 62cf423 into Project-MONAI:master Oct 28, 2020
wyli added a commit that referenced this pull request Nov 4, 2020
* update dice and the relevant loss

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on the comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
@wyli wyli deleted the 807-flexible-dice-loss branch April 12, 2021 14:21
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.

Training instability with Dice Loss/Tversky Loss

3 participants