コード例 #1
0
    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')
コード例 #2
0
    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')
コード例 #3
0
    def running_score(spec, configer):
        if 'seg' not in spec:
            return (None, None, None)

        return ({'seg': rslib.RunningScore(configer)}, 'seg', 'miou')