PySegMetric_EvalToolkit

June 2, 2024 · View on GitHub

Logo

基于python的图像分割测评工具箱(PSM)

已集成的评估指标

  • Pixel Accuracy (PA) is calculated based on the binarized prediction mask and ground-truth:


  • F-measure is a metric that comprehensively considers both precision and recall:


  • weighted F-measure is proposed to improve the metric F-measure. It assigns different weights (ω) to precision and recall across different errors at different locations, considering the neighborhood information:


  • S-measure evaluates the spatial structure similarity by combining the region-aware structural similarity Sr and the object-aware structural similarity So:


  • E-measure can jointly capture image level statistics and local pixel matching information:


  • IOU is the most common metric for evaluating classification accuracy:


  • Dice is a statistic used to gauge the similarity of two samples and become the most used metric in validating medical image segmentation:


  • Balanced error rate (BER) is a common metric to evaluate shadow detection performance, where shadow and non-shadow regions contribute equally to the overall performance without considering their relative areas:


  • MAE measures the average absolute difference between the prediction and the ground truth pixel by pixel:


分割任务中使用各类评估指标的代表性顶会论文工作

显著性目标检测(Salient Object Detection)

伪装目标检测 (Camouflaged Object Detection)

散焦模糊检测 (Defocus Blur Detection)

阴影检测 (Shadow Detection)

透明目标检测 (Transparent Object Dectection)

玻璃目标检测 (Glass Object Detection)

镜子检测 (Mirror Detection)

息肉分割 (Polyp Segmentation)

其他类型分割任务 (人像分割、缺陷检测、表面检测、物体内部探伤检测等)

超快捷使用方法

  • 安装./requirements.txt中的依赖
  • 对utils/config.py中的Models = {'Model1':Model1,'Model2':Model2}及test_datasets = {'dataset1':dataset1,'dataset2':dataset2}完成对应的路径设置。注意字典中的'dataset'及待测方法中的数据集文件夹名字应与真实的数据集名称保持一致。
  • 运行./test_score.py 数值预测结果日志将保留在当前目录中。

评测指标参考文献

@inproceedings{Fmax_mean,
  title={Frequency-tuned salient region detection},
  author={Achanta, Radhakrishna and Hemami, Sheila and Estrada, Francisco and S{\"u}sstrunk, Sabine},
  booktitle= CVPR,
  pages={1597--1604},
  year={2009}
}  

@inproceedings{Fwb,
  title={How to evaluate foreground maps?},
  author={Margolin, Ran and Zelnik-Manor, Lihi and Tal, Ayellet},
  booktitle=CVPR,
  pages={248--255},
  year={2014}
}

@inproceedings{Sm,
  title={Structure-measure: A new way to evaluate foreground maps},
  author={Fan, Deng-Ping and Cheng, Ming-Ming and Liu, Yun and Li, Tao and Borji, Ali},
  booktitle= ICCV,
  pages={4548--4557},
  year={2017}
}  
@inproceedings{Em,
    title="Enhanced-alignment Measure for Binary Foreground Map Evaluation",
    author="Deng-Ping {Fan} and Cheng {Gong} and Yang {Cao} and Bo {Ren} and Ming-Ming {Cheng} and Ali {Borji}",
    booktitle=IJCAI,
    pages="698--704",
    year={2018}
}