IOU
1 | def normalize(mask, threshold): |
MAE
1 | def normalize2(mask): |
Precision & Recall
1 | def precision_recall(gt, pred): |
F_Measure
1 | def F_measure(gt, pred, beta=pow(3, 0.5)): |
Weighted F_Measure
参考论文:https://arxiv.org/pdf/1708.06433.pdf
代码链接:https://github.com/jiwei0921/Saliency-Evaluation-Toolbox/blob/master/saliency_evaluation/WFb.m
Relax F_Measure
参考链接:https://github.com/NathanUA/BASNet/issues/20
1 | def boundary_extraction(mask, k_size=2): |
S_Measure
参考论文:https://arxiv.org/pdf/1708.00786.pdf
Mean Boundary Accuracy
1 | def get_disk_kernel(radius): |