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

Function CIPO_eval

eval/CIPO_evaluation/eval.py:29–45  ·  view source on GitHub ↗
(annFile, resFile)

Source from the content-addressed store, hash-verified

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

Callers 1

eval.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