Skip to content
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

Multithread batch sampler for PatchInferer #6139

Merged
merged 9 commits into from
Jul 15, 2023

Conversation

drbeh
Copy link
Member

@drbeh drbeh commented Mar 13, 2023

Fixes #6138

Description

This PR makes the batch sampling of PatchInferer multi-threaded so that WSI inference (using WSI splitters) can leverage this to enhance performance.

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.

@drbeh drbeh marked this pull request as ready for review June 6, 2023 18:36
@drbeh drbeh mentioned this pull request Jun 28, 2023
6 tasks
@drbeh drbeh marked this pull request as draft July 6, 2023 16:49
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
@drbeh drbeh force-pushed the multithread-patch-inference branch from 3fe72ed to a40b29a Compare July 10, 2023 18:12
@drbeh drbeh marked this pull request as ready for review July 10, 2023 18:41
monai/inferers/inferer.py Show resolved Hide resolved
monai/inferers/inferer.py Outdated Show resolved Hide resolved
@drbeh drbeh requested a review from KumoLiu July 13, 2023 15:00
Copy link
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.

Thanks for update, LGTM.

@drbeh
Copy link
Member Author

drbeh commented Jul 14, 2023

@ericspod any more comments here? Otherwise, we can merge it. Thanks

Copy link
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.

@drbeh I'm good here!

@wyli
Copy link
Contributor

wyli commented Jul 14, 2023

/build

@drbeh drbeh enabled auto-merge (squash) July 15, 2023 02:57
@drbeh drbeh disabled auto-merge July 15, 2023 02:58
@drbeh drbeh enabled auto-merge (squash) July 15, 2023 02:59
@drbeh drbeh merged commit dc1bc77 into Project-MONAI:dev Jul 15, 2023
32 checks passed
@drbeh drbeh deleted the multithread-patch-inference branch July 15, 2023 15:14
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.

Multi-threaded patch inference
4 participants