MeteorsHub / GLIA-Net

A segmentation network for intracranial aneurysm on CTA images using pytorch
39 stars 10 forks source link

How dose the overall metrics value get? #7

Closed CarolRen233 closed 2 years ago

CarolRen233 commented 2 years ago

How dose the overall metrics value get? When I use your evaluate_per_case.py and metrics.py to calculate the metrics on internal test set, I found the overall velue is different from the actual average of these metrics

ap auc precision recall sensitivity specificity dsc 0.55 0.78 0.83 0.55 0.55 1.00 0.66 0.48 0.77 0.59 0.53 0.53 1.00 0.51

the first line on the above table is the overall velue I get from the logging file using your evaluate_per_case.py and metrics.py code. the second line on the above table is the average of all 152 internal cases matrics.

I wonder why this inconsistent happends?

MeteorsHub commented 2 years ago

The segmentation metrics are computed micro-averaged, which means averaged per-voxel, not per-case

CarolRen233 commented 2 years ago

The segmentation metrics are computed micro-averaged, which means averaged per-voxel, not per-case

Thanks for your reply!