def running_score(spec, configer): if 'dir' not in spec: return (None, None, None) return ({ 'dir (mask)': rslib.RunningScore(configer, num_classes=DTOffsetConfig.num_classes, ignore_index=-1), 'dir (GT)': rslib.RunningScore(configer, num_classes=DTOffsetConfig.num_classes + 1, ignore_index=-1), }, 'dir (GT)', 'acc')
def running_score(spec, configer): if 'mask' not in spec: return (None, None, None) return ({ 'mask': rslib.RunningScore(configer, num_classes=2, ignore_index=-1) }, 'mask', 'acc')
def running_score(spec, configer): if 'seg' not in spec: return (None, None, None) return ({'seg': rslib.RunningScore(configer)}, 'seg', 'miou')