MCPcopy
hub / github.com/dbolya/yolact / add_gt_positives

Method add_gt_positives

eval.py:526–528  ·  view source on GitHub ↗

Call this once per image.

(self, num_positives:int)

Source from the content-addressed store, hash-verified

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

Callers 1

prep_metricsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected