Auto3DSeg and transforms #6584
-
I am running Auto3DSeg on a public dataset. The main problem is dimensions of labels and images do not fit and are not homogeneous. With standard MONAI pipelines I was using transforms such as ResampletoMatch to make them homogeneous. When I run Auto3DSeg as I could not find how to customize the transforms it fails: RuntimeError: Caught RuntimeError in DataLoader worker process 0. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @adrianvallsc, from the error message, I think you have a different size between the image and the label. You may need to check this data "/content/drive/MyDrive/segmentation/LABELS/sub-strokecase0242_ses-0001_msk.nii.gz". |
Beta Was this translation helpful? Give feedback.
-
Yes, I guessed this was the reason. My question was wether it was possible to apply custom transforms to Auto3DSeg run |
Beta Was this translation helpful? Give feedback.
-
Hi @adrianvallsc, I think the error was before training, it was in the MONAI/monai/apps/auto3dseg/data_analyzer.py Line 299 in 575954c Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @adrianvallsc, I think the error was before training, it was in the
data_analyzer
step, so adding your custom transforms may not solve this error. You may need to check the data first. :)MONAI/monai/apps/auto3dseg/data_analyzer.py
Line 299 in 575954c
Thanks!