RandZoom Transform with different interpolation for mask and image #6889
-
Hello, I am wondering if I can use the RandZoom with different interpolation, cause for the mask, it should stay as 0 or 1. but for image, the scale is allowed to interpolate. So if the mode changed from one line to the next, the randomness should be fixed if that makes sense. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
yes, similar demo cases are described here https://github.com/Project-MONAI/tutorials/blob/main/modules/3d_image_transforms.ipynb (the tutorial/modules folder has quite a few examples about the transforms in general https://github.com/Project-MONAI/tutorials/tree/main/modules) |
Beta Was this translation helpful? Give feedback.
Sure, the code looks fine, the random augmentations are 'in-place' data updates, different calls would output different augmented versions of the original inputs, this is often used with a dataset and dataloader. Please see https://github.com/Project-MONAI/monai-bootcamp/blob/main/MONAICore/Intro%20to%20MONAI.ipynb