From 8f81956fc4f7cbd79c508cbbff4cdfe04a3ad03a Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Fri, 6 Nov 2020 15:43:04 +0800 Subject: [PATCH] rename metric --- ppocr/metrics/__init__.py | 4 ++-- ppocr/metrics/{DetMetric.py => det_metric.py} | 0 ppocr/metrics/{RecMetric.py => rec_metric.py} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename ppocr/metrics/{DetMetric.py => det_metric.py} (100%) rename ppocr/metrics/{RecMetric.py => rec_metric.py} (100%) diff --git a/ppocr/metrics/__init__.py b/ppocr/metrics/__init__.py index 3fddac17..5d668cd8 100644 --- a/ppocr/metrics/__init__.py +++ b/ppocr/metrics/__init__.py @@ -23,8 +23,8 @@ __all__ = ['build_metric'] def build_metric(config): - from .DetMetric import DetMetric - from .RecMetric import RecMetric + from .det_metric import DetMetric + from .rec_metric import RecMetric support_dict = ['DetMetric', 'RecMetric'] diff --git a/ppocr/metrics/DetMetric.py b/ppocr/metrics/det_metric.py similarity index 100% rename from ppocr/metrics/DetMetric.py rename to ppocr/metrics/det_metric.py diff --git a/ppocr/metrics/RecMetric.py b/ppocr/metrics/rec_metric.py similarity index 100% rename from ppocr/metrics/RecMetric.py rename to ppocr/metrics/rec_metric.py -- GitLab