diff --git a/tools/eval.py b/tools/eval.py index 5517049d..2db6273a 100755 --- a/tools/eval.py +++ b/tools/eval.py @@ -16,7 +16,6 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function -import os import os import sys __dir__ = os.path.dirname(__file__) diff --git a/tools/infer/predict_rec.py b/tools/infer/predict_rec.py index 249d1006..b96a9fab 100755 --- a/tools/infer/predict_rec.py +++ b/tools/infer/predict_rec.py @@ -17,7 +17,7 @@ __dir__ = os.path.dirname(__file__) sys.path.append(__dir__) sys.path.append(os.path.join(__dir__, '../..')) -import utility +import tools.infer.utility as utility from ppocr.utils.utility import initial_logger logger = initial_logger() from ppocr.utils.utility import get_image_file_list