Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pycocotools.coco import COCO
- from pycocotools.cocoeval import COCOeval
- annFile = './ground_truth.json'
- cocoGt=COCO(annFile)
- resFile = './results.json'
- cocoDt=cocoGt.loadRes(resFile)
- imgIds=sorted(cocoGt.getImgIds())
- cocoEval = COCOeval(cocoGt,cocoDt,annType)
- cocoEval.params.imgIds = imgIds
- cocoEval.evaluate()
- cocoEval.accumulate()
- cocoEval.summarize()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement