Call this once per image.
(self, num_positives:int)
| 524 | self.data_points.append((score, is_true)) |
| 525 | |
| 526 | def add_gt_positives(self, num_positives:int): |
| 527 | """ Call this once per image. """ |
| 528 | self.num_gt_positives += num_positives |
| 529 | |
| 530 | def is_empty(self) -> bool: |
| 531 | return len(self.data_points) == 0 and self.num_gt_positives == 0 |