Replies: 2 comments 4 replies
-
Hi @maunzzz, thanks for your interest here. Maybe this feature can help solve the issue here which will come out soon. The feature is still in develop and will have an initial version in the later release. With lazy resampling, we could increase the transform speed, reduce memory and artifact reduction. When it is finished, welcome to test out this feature in your pipeline as well. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answers and interest in this thread. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm working on a 3d segmentation problem with large CT images (512x512x400).
I want to do spatial augmentation in my training pipeline. For performance issues I want this to be done after the RandCropByPosNegLabeld transform so I don't need to apply the random affine transform on the entire image.
However, if I do RandCropByPosNegLabeld with my input size (96,96,96) and then apply a random affine transformation (as in the transform example below, Alternative 1) there will be unnecessary edge effects.
To avoid this, I could extract a larger (large enough to guarantee that no "outside" pixels will be transformed into the center 96x96x96) patch with RandCropByPosNegLabeld and then apply a random affine transform to the larger patch, as in Alternative 2 below.
Non of these transform pipelines are optimal, in alternative 1 we get unnecessary edge effects and in alternative 2 we apply an affine transform to an unnecessary large patch. Is there a better way of doing this in Monai?
Alternative 1
Alternative 2
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions