-
Hello, I'm modifying the spleen 3D segmentation example to work with the 2016 MSSEG dataset. The dataset consists of multiple input images (I'm using 3) and a single consensus label image. I'm currently using the pre-processed images but without the registered brain mask file. I'm currently experiencing two issues: first is my label image is shows as blank after the data loader but doesn't error (minor issue) and the second is AssertionError: ground truth has different shape (major issue, full error below). I would appreciate any help or suggestions. I've checked that onehot is set to true and I've tried remapping the labels from [1,2] to [0,1] but neither has made a difference. epoch 1/600 AssertionError Traceback (most recent call last) 1 frames AssertionError: ground truth has different shape (torch.Size([1, 128, 64, 128, 128])) from input (torch.Size([1, 1, 64, 128, 128])) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @savvvyk , Thanks for your interest here. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
I discovered that the label was not being included in the EnsureChannelFirstd command causing it to not have the channel array element. I have now been able to run the code without error (still needs much tuning however). |
Beta Was this translation helpful? Give feedback.
I discovered that the label was not being included in the EnsureChannelFirstd command causing it to not have the channel array element. I have now been able to run the code without error (still needs much tuning however).