Auto3dSeg SwinUnetR with Multiple inputs #6772
-
I am trying the auto3dseg to do a segmentation task. The aim is to be able to input 3 different MRI modalities, which needs to be stacked as channels to be input into swinuter and produce a single channel output segmention. Based on the HECKTOR22 example this is how input yaml looks like modality: MRI # primary modality
dataroot: '/data/' # dataset location
datalist: dataset_folds.json # a list of filenames
class_names: ['out'] # names for tensorboard
extra_modalities: {image1 : MRI, image2: MRI} # a second modality
roi_size: [96, 96, 96] but the code still launches and shows me single channel input. How can I modify the functionality. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @a-parida12, It seems that auto3dseg is not concat the data for you; perhaps you should do a concat yourself before putting the data into it. Hope it helps, thanks! |
Beta Was this translation helpful? Give feedback.
-
I think a) If I just prepared all the data to then find out that it's not using all the inputs I am providing. @diazandr3s, maybe you have some more insights |
Beta Was this translation helpful? Give feedback.
Hi @a-parida12, It seems that auto3dseg is not concat the data for you; perhaps you should do a concat yourself before putting the data into it.
https://github.com/Project-MONAI/research-contributions/blob/main/auto3dseg/algorithm_templates/swinunetr/configs/transforms_train.yaml
Also, remember to update the
input_channels
.https://github.com/Project-MONAI/research-contributions/blob/fecb45270c9ad0fedb75fce255fb3e63140935f9/auto3dseg/algorithm_templates/swinunetr/configs/network.yaml#L5
Hope it helps, thanks!