Project-MONAI / tutorials

MONAI Tutorials
https://monai.io/started.html
Apache License 2.0
1.86k stars 683 forks source link

Using auto3dseg for Multichannel Inputs #1773

Closed Yasna-frn closed 1 month ago

Yasna-frn commented 3 months ago

I'm trying to use auto3dseg for lesion segmentation and I've tried to make a JSON file like the Hecktor 22 example in this link. But it assumes the number of input channels is 1.

When I tried to make a JSON file like the BraTS JSON file (https://drive.google.com/file/d/1i-BXYe-wZ8R9Vp3GXoajGyqaJ65Jybg1/view) and defined: runner = AutoRunner( work_dir="./work_dir_2ch", input={ "modality": ["Ph1", "Ph3"], "datalist": "./ISPY_2Ch.json", "dataroot": "", }, It gives this error: image

I'm wondering how I should use auto3dseg for multichannel inputs?

diazandr3s commented 3 months ago

Hi @Yasna-frn,

I know it can be confusing. But if you've created the JSON file as shown for BRATS daatset, you don't need to specify the modalities in the AutoRunner. Please remove this line:

"modality": ["Ph1", "Ph3"],

You can see here the arguments for HECTOR challenge and here the arguments for BRATS.

Hope this helps,

Yasna-frn commented 3 months ago

Thank you! It's working now!

diazandr3s commented 1 month ago

Closing issue