Skip to content

Spleen 3D Segmentation - output segmentation does not invert properly #1170

Answered by KumoLiu
park-minjun asked this question in General
Discussion options

You must be logged in to vote

Hi @park-minjun, you could remove to_onehot in AsDiscreted(in post_transforms), then it will only save the output with one channel, then you could overlay them in the itksnap.

AsDiscreted(keys="pred", argmax=True, to_onehot=2)

update it to

AsDiscreted(keys="pred", argmax=True)

Hope it can help you, thanks!

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by park-minjun
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1169 on January 16, 2023 08:16.