KidsWithTokens / MedSegDiff

Medical Image Segmentation with Diffusion Model
MIT License
980 stars 147 forks source link

evaluation IoU, Dice, F1 score in per class; #109

Closed heikeyuhuajia closed 1 year ago

heikeyuhuajia commented 1 year ago

Hello, I'm recently conducting comparison experiments. Some of these experiments are conducted through the MMsegmentation framework, which has evaluation metrics including

IoU, Dice, F1 scores for different categories,

and I would like to know these metrics for Meddiff, so I wrote this script for evaluation.

heikeyuhuajia commented 1 year ago

I also have a question: can I use the binary (0, 1) pred label predicted by other segmentation models and compare the experimental results by

segmentation_env.py

file? It should be noted that the traditional model does not pass the ensemble technique.

WuJunde commented 1 year ago

Awesome! Thanks for your contribution! b.t.w, I think segmentation_env.py works for the binary masks ( the thresholding becomes meaningless but will not affect the final result.)