Replies: 5 comments 1 reply
-
I just want to do binary segmentation: background (channel 0) and whole tumor (channel 1). So, the transformation is: For BraTS 2021 Datasetimport os class ConvertToTwoChannelsd(transforms.MapTransform):
class BraTS2021Dataset(Dataset):
And the architecture is: model = SwinUNETR( |
Beta Was this translation helpful? Give feedback.
-
This is my validate script:
logits = model_inferer(data)
with the post transformations as: post_sigmoid = Activations(sigmoid=True) |
Beta Was this translation helpful? Give feedback.
-
I am using most of the code from here: "https://github.com/Project-MONAI/tutorials/blob/main/3d_segmentation/swin_unetr_brats21_segmentation_3d.ipynb" but with custom transforms for binary segmentations |
Beta Was this translation helpful? Give feedback.
-
Hi @soumbane, I would suggest you check your data after transforms first, please ensure all the data have ensure channel first. Thanks. |
Beta Was this translation helpful? Give feedback.
-
This issue is solved |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am using MONAI's Swin UNETR architecture for prediction of segmentation masks using BraTS 2021 dataset. However, I get these weird segmentation maps predicted even though the dice score is very high (above 90%).
Beta Was this translation helpful? Give feedback.
All reactions