baby.performance.calc_AP

baby.performance.calc_AP(IoUs, probs=None, iou_thresh=0.5)

Calculate the Average Precision from the matrix of IoU terms

If probs is not specified, then the predicted segmentations are assumed to have been provided in order of most to least probable.