MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / compare

Method compare

PATH/core/solvers/utils/peddet_tester_dev.py:517–531  ·  view source on GitHub ↗

match the detection results with the groundtruth in the whole database

(self, thres=0.5, matching=None)

Source from the content-addressed store, hash-verified

515 self.images[record["ID"]].clip_all_boader()
516
517 def compare(self, thres=0.5, matching=None):
518 """
519 match the detection results with the groundtruth in the whole database
520 """
521 assert matching is None or matching == "VOC", matching
522 scorelist = list()
523 for ID in self.images:
524 if matching == "VOC":
525 result = self.images[ID].compare_voc(thres)
526 else:
527 result = self.images[ID].compare_caltech(thres)
528 scorelist.extend(result)
529 # In the descending sort of dtbox score.
530 scorelist.sort(key=lambda x: x[0][-1], reverse=True)
531 self.scorelist = scorelist
532
533 def eval_MR(self, ref="CALTECH_-2", fppiX=None, fppiY=None):
534 """

Callers 2

eval_MRMethod · 0.95

Calls 2

compare_vocMethod · 0.80
compare_caltechMethod · 0.80

Tested by

no test coverage detected