match the detection results with the groundtruth in the whole database
(self, thres=0.5, matching=None)
| 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 | """ |
no test coverage detected