diff --git a/ppocr/metrics/cls_metric.py b/ppocr/metrics/cls_metric.py index 03cbe9c8..09817200 100644 --- a/ppocr/metrics/cls_metric.py +++ b/ppocr/metrics/cls_metric.py @@ -32,9 +32,8 @@ class ClsMetric(object): def get_metric(self): """ - return metircs { - 'acc': 0, - 'norm_edit_dis': 0, + return metrics { + 'acc': 0 } """ acc = self.correct_num / self.all_num diff --git a/ppocr/metrics/det_metric.py b/ppocr/metrics/det_metric.py index 889a8e15..0f9e94df 100644 --- a/ppocr/metrics/det_metric.py +++ b/ppocr/metrics/det_metric.py @@ -57,7 +57,7 @@ class DetMetric(object): def get_metric(self): """ - return metircs { + return metrics { 'precision': 0, 'recall': 0, 'hmean': 0 diff --git a/ppocr/metrics/rec_metric.py b/ppocr/metrics/rec_metric.py index 98817ad8..bd0f92e0 100644 --- a/ppocr/metrics/rec_metric.py +++ b/ppocr/metrics/rec_metric.py @@ -43,7 +43,7 @@ class RecMetric(object): def get_metric(self): """ - return metircs { + return metrics { 'acc': 0, 'norm_edit_dis': 0, }