Skip to content
Discussion options

You must be logged in to vote

Looks like your image will contain 4 channels, and these will be one-hotted. This means that you should likely be using the Softmax activation, not Sigmoid. From here, you can then do argmax to convert from a one-hotted image into an image with a single channel filled with integers, each integer corresponding to a different label. I suspect that once you save this, it will look as you expect.

Edit: sorry, I didn't check your code properly before replying -- you already have the argmax. Have you checked that your network is doing what you expect? You could do this with a matplotlib.imshow. If it looks normal in imshow, then maybe the problem is just the Slicer viewer settings. For debuggin…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

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

rijobro May 17, 2022
Collaborator

@Alex8211101
Comment options

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