Unable to recover original labels via invert function in segmentation. #2598
Unanswered
talhaanwarch
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @talhaanwarch , Thanks for your interest and experiment with MONAI. Thanks. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to read validation data mask using nibabel and inverted mask got via post transform using monai. As both are ground, they should be same. But in my case, they are not same
Here is my transform function, i have used same for training and validation
Here is post transform function
Here is the conversion process
Some further script
results in
This is how images are loaded without monai
and the first image has shape
of
((512, 512, 33), (512, 512, 33))
You can see two images are not same
As both are ground truth one is input ground truth and other is transform apply on ground truth and invert transform apply to get it back. so I assume both should be same
Beta Was this translation helpful? Give feedback.
All reactions