SlidingWindowInfererAdapt#6251
Merged
wyli merged 6 commits intoProject-MONAI:devfrom Apr 14, 2023
myron:sliding
Merged
Conversation
Collaborator
Author
|
I'm not sure why it fails premerge/flake test. It's fine for me. can someone help plz @mingxin-zheng @wyli |
Contributor
|
Hi @myron , as I replied in the slack channel, this could be caused by using a different version of I ran |
wyli
reviewed
Mar 28, 2023
myron
commented
Mar 29, 2023
myron
commented
Mar 29, 2023
myron
commented
Mar 29, 2023
Signed-off-by: myron <[email protected]>
Signed-off-by: myron <[email protected]>
Signed-off-by: myron <[email protected]>
Signed-off-by: myron <[email protected]>
Collaborator
Author
|
@wyli I've updated this PR to include buffered case handling, please check and merge also mypy complained on the super().call_() lines with error: even though, the code looks correct. |
wyli
approved these changes
Apr 14, 2023
Contributor
wyli
left a comment
There was a problem hiding this comment.
thanks, I'll test and merge it soon
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
wyli
reviewed
Apr 14, 2023
Contributor
|
/build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SlidingWindowInfererAdapt extends SlidingWindowInferer to automatically switch to buffered and then to CPU stitching, when OOM on GPU. It also records a size of such large images to automatically try CPU stitching for the next large image of a similar size. If the stitching 'device' input parameter is provided,
automatic adaptation won't be attempted, please keep the default option device = None for adaptive behavior.
Note: the output might be on CPU (even if the input was on GPU), if the GPU memory was not sufficient.
also fixes #6340 by adding one line to the resampling