Skip to content

Inversion of background and object in label #669

Answered by dongyang0122
Yangtting asked this question in Q&A
Discussion options

You must be logged in to vote

@Yangtting the pre-transforms looks good. But I notice that you have set "to_onehot" to 3 in the post-transform. You can try to set it as None to see if it works. When "to_onehot" is not None, it will create additional dimension for classes.

https://docs.monai.io/en/stable/transforms.html#monai.transforms.AsDiscreted

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Yangtting
Comment options

Comment options

You must be logged in to vote
1 reply
@Yangtting
Comment options

Answer selected by Yangtting
Comment options

You must be logged in to vote
2 replies
@Yangtting
Comment options

@rafiibnsultan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants