Skip to content

WSI sliding window splitter#6107

Merged
Nic-Ma merged 104 commits intoProject-MONAI:devfrom
bhashemian:wsi-sliding-window
May 26, 2023
Merged

WSI sliding window splitter#6107
Nic-Ma merged 104 commits intoProject-MONAI:devfrom
bhashemian:wsi-sliding-window

Conversation

@bhashemian
Copy link
Copy Markdown
Member

@bhashemian bhashemian commented Mar 6, 2023

Fixes #5871

Description

This PR:

  • implements a WSISlidingWindowSplitter a splitter for whole slide imaging,
  • refactors SlidingWindowSplitter to make it inheritable for wsi version (backward incompatible arguments),
  • adds new feature to AvgMerger to crop the output (backward compatible), and
  • updates PatchInference to set cropping shape for new feature in AvgMerger (backward compatible)

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • 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 --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@bhashemian bhashemian marked this pull request as ready for review March 9, 2023 18:05
@bhashemian bhashemian requested a review from KumoLiu March 9, 2023 18:05
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
@bhashemian
Copy link
Copy Markdown
Member Author

@Nic-Ma @wyli do you know why flake8 is failing here?
I cannot reproduce it locally. All checks of ./runtests.sh --build --codeformat are being passed on my machine.

@wyli wyli enabled auto-merge (squash) March 9, 2023 19:55
@wyli wyli disabled auto-merge March 9, 2023 19:55
@Nic-Ma
Copy link
Copy Markdown
Contributor

Nic-Ma commented Mar 10, 2023

/black

@Nic-Ma
Copy link
Copy Markdown
Contributor

Nic-Ma commented Mar 10, 2023

Hi @drbeh ,

You can use /black or --autofix command to format the code, refer to:
https://github.com/Project-MONAI/MONAI/blob/dev/runtests.sh#L77

Thanks.

Signed-off-by: monai-bot <[email protected]>
@bhashemian bhashemian requested a review from Nic-Ma March 10, 2023 14:35
@bhashemian bhashemian marked this pull request as draft March 14, 2023 19:44
@bhashemian bhashemian requested a review from KumoLiu May 19, 2023 14:13
@bhashemian
Copy link
Copy Markdown
Member Author

Hi @Nic-Ma @KumoLiu, could you please check if all your comments are addressed and if you have any other feedback. Thanks

@Nic-Ma Nic-Ma requested a review from ericspod May 23, 2023 08:47
@ericspod
Copy link
Copy Markdown
Member

Hi @drbeh I was asked to review as @KumoLiu may not be available. I had a few minor comments I've given above but otherwise it looks good to me.

bhashemian and others added 7 commits May 24, 2023 15:46
Co-authored-by: Eric Kerfoot <[email protected]>
Signed-off-by: Dr. Behrooz Hashemian <[email protected]>
Co-authored-by: Eric Kerfoot <[email protected]>
Signed-off-by: Dr. Behrooz Hashemian <[email protected]>
Co-authored-by: Eric Kerfoot <[email protected]>
Signed-off-by: Dr. Behrooz Hashemian <[email protected]>
Copy link
Copy Markdown
Contributor

@KumoLiu KumoLiu left a comment

Choose a reason for hiding this comment

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

I have no other comments, thanks for the update.

Copy link
Copy Markdown
Member

@ericspod ericspod 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!

@Nic-Ma
Copy link
Copy Markdown
Contributor

Nic-Ma commented May 25, 2023

/build

@Nic-Ma Nic-Ma enabled auto-merge (squash) May 25, 2023 15:57
@Nic-Ma Nic-Ma merged commit 4bd93c0 into Project-MONAI:dev May 26, 2023
@bhashemian bhashemian deleted the wsi-sliding-window branch June 9, 2023 15:41
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.

Implement a sliding window Splitter for whole slide images

6 participants