-
preprocessing = Compose( And I got .conda/envs/mri/lib/python3.11/site-packages/monai/transforms/compose.py:355: UserWarning: inverse has been called but no invertible transforms have been supplied Why is this preprocessing not invertible? I've been following a similar procedure as here: https://github.com/Project-MONAI/model-zoo/blob/dev/models/wholeBrainSeg_Large_UNEST_segmentation/configs/inference.json |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @alfaevc, thanks for your interest here. Invertible transforms are often be useful to return them to their original space after. You might, for example, want to use a network to segment an image, and then you'll want that segmented image in the same space as the input so that you can compare them. You could then save them to file and compare them in your favourite medical image viewer. You can double check with So in your preprocessing, all the transforms are not BTW, you can refer to this tutorials for more information: https://github.com/Project-MONAI/tutorials/blob/main/modules/inverse_transforms_and_test_time_augmentations.ipynb |
Beta Was this translation helpful? Give feedback.
Hi @alfaevc, thanks for your interest here.
Invertible transforms are often be useful to return them to their original space after. You might, for example, want to use a network to segment an image, and then you'll want that segmented image in the same space as the input so that you can compare them. You could then save them to file and compare them in your favourite medical image viewer.
You can double check with
isinstance(x, InvertibleTransform)
.So in your preprocessing, all the transforms are not
InvertibleTransform
since no spacing-related transforms.BTW, you can refer to this tutorials for more information: https://github.com/Project-MONAI/tutorials/blob/main/modules/inverse_trans…