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

computeIoU(imgId, catId)[source]
computeOks(imgId, catId)[source]
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

summarize_per_category()[source]

Compute and display summary metrics for evaluation results per category. Note this functin can only be applied on the default parameter setting

filter_annotations(annotations, catIds)[source]
makeplot(recThrs, precisions, name, save_dir=None)[source]
analyze()[source]

Analyze errors

class easycv.core.evaluation.custom_cocotools.cocoeval.Params(iouType='segm')[source]

Bases: object

Params for coco evaluation api

setDetParams()[source]
setKpParams()[source]
__init__(iouType='segm')[source]

Initialize self. See help(type(self)) for accurate signature.