Unable to train on 3D Vector Images #1443
-
Hello Everyone, I'm currently working on using the Radiology Application and the DeepEdit model from the MONAI Label project for processing 3D images that contain 3 channels. These images were created using ITK's Compose image filter and saved as ".nrrd" files. I've made the necessary modifications to the DeepEdit configuration to handle the 3 channels based on the documentation. While I can successfully start the application, load images, and add segmentations, I encounter an error when attempting to train the model. The error message I receive is as follows:and were subsequently saved as ".nrrd" files.
I'm having trouble understanding the cause of this error. It seems related to the image loading process or a transformation applied during training. I've already updated the DeepEdit configuration to handle 3 channels, and I believe that should be the only required change. I would greatly appreciate any insights or suggestions on how to resolve this issue. Thank you in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
HI @Ivan-E-Johnson, Thanks for posting this question. This is an interesting use case.
modality1 is a folder containing the files with the first modality (Img-001.nrrd, etc) and it is the one you specify to start the MONAI Label server. For this, you'd need to create a customized transform to load the other modalities before training or inference occurs. Something like this:
And then, add this customised transform to the pretransforms list (https://github.com/Project-MONAI/MONAILabel/blob/main/sample-apps/radiology/lib/trainers/segmentation.py#L73). It should look something like this:
|
Beta Was this translation helpful? Give feedback.
HI @Ivan-E-Johnson,
Thanks for posting this question. This is an interesting use case.
May I ask you whether the 3 modalities are registered? If they are, my suggestion is to separate the modalities into 3 different files and organized the files like this:
modality1 is a folder containing the files with the first modality (Img-001.nrrd, etc) and it is the one you specify to start the MONAI Label server.
For …