Skip to content

2707 Add support to randomly fill cutout holes #2837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Aug 25, 2021

Conversation

Nic-Ma
Copy link
Contributor

@Nic-Ma Nic-Ma commented Aug 25, 2021

Fixes #2707 .

Description

This PR added support to fill the holes of cutout with random values instead of constant.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • 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.

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Aug 25, 2021

/black

Signed-off-by: Nic Ma <[email protected]>
@Nic-Ma Nic-Ma requested review from wyli, ericspod and rijobro August 25, 2021 07:54
@Nic-Ma Nic-Ma changed the title [WIP] 2707 Add support to randomly fill cutout holes 2707 Add support to randomly fill cutout holes Aug 25, 2021
@Nic-Ma Nic-Ma marked this pull request as ready for review August 25, 2021 07:55
Copy link
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.

Looks good to me, maybe we'll also need an option to set the random range of the fill values to min(img), max(img)

@wyli
Copy link
Contributor

wyli commented Aug 25, 2021

/build

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Aug 25, 2021

Looks good to me, maybe we'll also need an option to set the random range of the fill values to min(img), max(img)

That's a good point, I will update to use fill_value=None to automatically compute the min and max from image.

Thanks.

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Aug 25, 2021

/black

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Aug 25, 2021

Hi @wyli ,

Do you know why the DepSource tests always cancel even I re-run it?

Thanks in advance.

@wyli
Copy link
Contributor

wyli commented Aug 25, 2021

/build

@Nic-Ma Nic-Ma enabled auto-merge (squash) August 25, 2021 14:00
@wyli
Copy link
Contributor

wyli commented Aug 25, 2021

/build

@Nic-Ma Nic-Ma merged commit a88976c into Project-MONAI:dev Aug 25, 2021
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.

Augmentation Transform | InCut & OutCut Dropping (ETA 08/27/21)
3 participants