-
Hello all, For the turtorial 3d_segmentation/torch/unet_training_array.py, I want to try
But I encounter this problem:
I have searched the similar questions like Segmentation example on multiple labels, but I can't find a similar one_hot option for Could anyone tell me how to solve this problem? For example, using built-in transforms to convert multi-lables to multi-channel? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @LIKP0, you can simply add a post-transform for the label like this:
You can also refer to this tutorial. |
Beta Was this translation helpful? Give feedback.
-
By the way, I find the easiest way to train multi-label case for tutorial 3d_segmentation/torch/unet_training_array.py is to change three points:
Hope this could help somebody. |
Beta Was this translation helpful? Give feedback.
Hi @LIKP0, you can simply add a post-transform for the label like this:
You can also refer to this tutorial.
Hope it can help you, thanks!