From 190dff57e131b322a2f2342516821f28c8b40ec3 Mon Sep 17 00:00:00 2001 From: topduke <784990967@qq.com> Date: Tue, 17 Aug 2021 20:51:01 +0800 Subject: [PATCH] Update eval.py --- tools/eval.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/eval.py b/tools/eval.py index d26f2a04..66eb315f 100755 --- a/tools/eval.py +++ b/tools/eval.py @@ -22,6 +22,7 @@ import sys __dir__ = os.path.dirname(os.path.abspath(__file__)) sys.path.append(__dir__) sys.path.append(os.path.abspath(os.path.join(__dir__, '..'))) + from ppocr.data import build_dataloader from ppocr.modeling.architectures import build_model from ppocr.postprocess import build_post_process @@ -30,6 +31,7 @@ from ppocr.utils.save_load import init_model from ppocr.utils.utility import print_dict import tools.program as program + def main(): global_config = config['Global'] # build dataloader