Prepare image_files for mulitple channels and seg_files for ImageDataset #5301
-
Hi, I am trying to set up
Then I am create dataset and dataloader with:
and have an error: I assume that dict for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @relyativist , Thanks for your interest here. Thanks. |
Beta Was this translation helpful? Give feedback.
Hi @relyativist ,
Thanks for your interest here.
The
ImageDataset
supposes to work with array data instead of dict data.For your case, I would suggest to use
Dataset
and dict based transforms:https://github.com/Project-MONAI/MONAI/blob/dev/monai/data/dataset.py#L57
You can refer to the Brats tutorial for more details:
https://github.com/Project-MONAI/tutorials/blob/main/3d_segmentation/brats_segmentation_3d.ipynb
Thanks.