Replies: 3 comments 4 replies
-
Hi @o-fares , Thanks for your interest here. Thanks. |
Beta Was this translation helpful? Give feedback.
-
For your special requirement, I think you can do some thing like: dice_metric = MeanDice(...)
for data in dataloader:
dice_metric(y_pred=data["image"], y=data["label"])
metric = dice_metric.aggregate().item() # result of the 100 slices? Thanks. |
Beta Was this translation helpful? Give feedback.
-
If you can separate the patients, maybe you can just compute MeanDice for every patient totally separately? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm using a segmentation framework with Monai on 2D slices extracted from 3D NIFTI volumes. I previoulsy used a Tensorflow framework, where I could use 2D slices in the batches and calculate metrics like Dice coefficient on 3D volumes (where it has more sense in my case).
I am using DataLoader in Monai to create batches from 2D slices (NIFTI), but it seems like the metrics can only be calculated on these 2D slices and not on the full volume.
Do you know if there could be any alternative allowing to calculate the metrics on 3D volumes?
Beta Was this translation helpful? Give feedback.
All reactions