easycv.core.evaluation.custom_cocotools package¶
Submodules¶
easycv.core.evaluation.custom_cocotools.cocoeval module¶
- class easycv.core.evaluation.custom_cocotools.cocoeval.COCOeval(cocoGt=None, cocoDt=None, iouType='segm', sigmas=None)[source]¶
Bases:
object
- __init__(cocoGt=None, cocoDt=None, iouType='segm', sigmas=None)[source]¶
Initialize CocoEval using coco APIs for gt and dt :param cocoGt: coco object with ground truth annotations :param cocoDt: coco object with detection results :param iouType: type of iou to be computed, bbox for detection task,
segm for segmentation task
- Parameters
sigmas – keypoint labelling sigmas.
- Returns
None
- evaluate()[source]¶
Run per image evaluation on given images and store results (a list of dict) in self.evalImgs :returns: None
- evaluateImg(imgId, catId, aRng, maxDet)[source]¶
perform evaluation for single category and image :param imgId: image id, string :param catId: category id, string :param aRng: area range, tuple :param maxDet: maximum detection number
- Returns
dict (single image results)
- accumulate(p=None)[source]¶
Accumulate per image evaluation results and store the result in self.eval :param param p: input params for evaluation
- Returns
None
- summarize()[source]¶
Compute and display summary metrics for evaluation results. Note this functin can only be applied on the default parameter setting