From 49895d097a242f3cb61e01ae7914f5711c09e9cb Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Fri, 11 Dec 2020 13:19:37 +0800 Subject: [PATCH] fix typo error --- ppocr/metrics/cls_metric.py | 5 ++--- ppocr/metrics/det_metric.py | 2 +- ppocr/metrics/rec_metric.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) 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, } -- GitLab