MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / CIPO_eval

Function CIPO_eval

eval/CIPO_evaluation/example/EvalDemo.py:31–47  ·  view source on GitHub ↗
(annFile, resFile)

Source from the content-addressed store, hash-verified

29from pycocotools.cocoeval import COCOeval
30
31def CIPO_eval(annFile, resFile):
32
33 # load annotation
34 cocoGt = adapter(annFile)
35 print(len(cocoGt.getAnnIds()))
36
37 # load result
38 cocoDt=cocoGt.loadRes(resFile)
39
40 imgIds=sorted(list(cocoGt.imgs.keys()))
41
42 # run evaluation
43 cocoEval = COCOeval(cocoGt,cocoDt)
44 cocoEval.params.imgIds = imgIds
45 cocoEval.evaluate()
46 cocoEval.accumulate()
47 cocoEval.summarize()
48
49
50if __name__ == '__main__':

Callers 1

EvalDemo.pyFile · 0.70

Calls 7

evaluateMethod · 0.95
accumulateMethod · 0.95
summarizeMethod · 0.95
adapterClass · 0.90
COCOevalClass · 0.90
getAnnIdsMethod · 0.80
loadResMethod · 0.80

Tested by

no test coverage detected