Replies: 2 comments 9 replies
-
Hi @amida47, could you please check the shape of your data, looks like you have a mismatched shape? Thanks! |
Beta Was this translation helpful? Give feedback.
-
the original example has the cropping transform https://github.com/Project-MONAI/tutorials/blob/main/3d_segmentation/brats_segmentation_3d.ipynb
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
the following is code I used to train on the Brats 2023 dataset
so to summarize, I fetch all the files in the dataset folder, the data is a list of dictionaries in each dict (corresponds to a patient) there is two keys "imgs": a list of the 4 modalities , and "seg" is the segmentation map of that patient .
I load the 4 modalities and stack them to get a shape of (4, 240, 240, 155) then permute to (4, 155, 240, 240), I do the same to the segmentation map load and permute to get a shape of (155, 240, 240), this is the only thing I added by myself
when the training loop starts I get this error
for the full traceback visit https://pastebin.com/zZSRihsQ
Beta Was this translation helpful? Give feedback.
All reactions