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

Method __init__

PATH/core/utils.py:816–821  ·  view source on GitHub ↗
(self, num_classes=None, ignore_index=None)

Source from the content-addressed store, hash-verified

814class SegmentationRunningMetrics(object):
815
816 def __init__(self, num_classes=None, ignore_index=None):
817
818 self.n_classes = num_classes
819 self.ignore_index = ignore_index
820 self.confusion_matrix = np.zeros((self.n_classes, self.n_classes))
821 self.reduced_confusion_matrix = None
822
823 def get_F1_score(self):
824 assert self.n_classes == 2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected