-
|
I am working with 3d segmentation using Monai and Nifti files as inputs and using a model which has 6 input channels, I get an error in the inference testing of the model. So after using the tutorial code from "https://github.com/Project-MONAI/tutorials/blob/72728b678947bc21443d02d3a19d29f01c9eed01/3d_segmentation/spleen_segmentation_3d.ipynb", as a reference, the issue I end up is at post transforms to revert the pretransforms and save the output file. As I am using 6 inputs, and end up with only one output, I get an error stating, Now, as I am passing img_keys which is a list of 6 keys, eg, input_1, input_2, etc, it requires one single key instead of 6, but in pre transform I have used 6 keys because of 6 input channels. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 24 replies
-
|
Hi @lenlobo, If you have images with 6 input channels, you can simply use one key to preprocess them like: ] |
Beta Was this translation helpful? Give feedback.
Hi @lenlobo, If you have images with 6 input channels, you can simply use one key to preprocess them like:
]
You can also refer to brats segmentation tutorial for reference which uses 4 modalities as input.
Hope it can help you, thanks!