39 sliding window inference #52
Closed
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.
Hi All,
This PR implemented the common inference logic of sliding window method #39 .
Also added image padder transform(pad to end).
Could you please help review it?
Thanks in advance.
I already added unit tests for them and verified locally:
_test_conv1 (tests.test_convolutions.TestConvolution2D) ... ok
test_conv_only1 (tests.test_convolutions.TestConvolution2D) ... ok
test_dilation1 (tests.test_convolutions.TestConvolution2D) ... ok
test_dropout1 (tests.test_convolutions.TestConvolution2D) ... ok
test_stride1 (tests.test_convolutions.TestConvolution2D) ... ok
test_transpose1 (tests.test_convolutions.TestConvolution2D) ... ok
test_transpose2 (tests.test_convolutions.TestConvolution2D) ... ok
test_conv_only1 (tests.test_convolutions.TestResidualUnit2D) ... ok
test_dilation1 (tests.test_convolutions.TestResidualUnit2D) ... ok
test_dropout1 (tests.test_convolutions.TestResidualUnit2D) ... ok
test_stride1 (tests.test_convolutions.TestResidualUnit2D) ... ok
test_shape_0 (tests.test_dice_loss.TestDiceLoss) ... ok
test_shape_1 (tests.test_dice_loss.TestDiceLoss) ... ok
test_image_end_pad_shape_0 (tests.test_image_end_padder.TestImageEndPadder) ... ok
test_image_normalizer_default (tests.test_intensity_normalizer.IntensityNormTestCase) ... ok
test_sliding_window_default (tests.test_sliding_window_inference.TestSlidingWindowInference) ... ok
test_shape_0 (tests.test_unet.TestUNET) ... ok
test_shape_1 (tests.test_unet.TestUNET) ... ok
test_shape_2 (tests.test_unet.TestUNET) ... ok
Ran 19 tests in 5.266s
OK_
The CI test error is because runner can't find GPU:
Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver
Need @IsaacYangSLA to help on CI config.
Thanks.