From 83ed0d7dc62c3ef0904b4a7e638aebac72a9c0c6 Mon Sep 17 00:00:00 2001 From: ncnnnnn <67086033+ncnnnnn@users.noreply.github.com> Date: Wed, 29 Jun 2022 11:06:06 +0800 Subject: [PATCH] No module named 'tools.infer' --- tools/infer/predict_rec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/infer/predict_rec.py b/tools/infer/predict_rec.py index f3256be..c8a82df 100644 --- a/tools/infer/predict_rec.py +++ b/tools/infer/predict_rec.py @@ -11,7 +11,7 @@ import time import torch from pytorchocr.base_ocr_v20 import BaseOCRV20 -import tools.infer.pytorchocr_utility as utility +import pytorchocr_utility as utility from pytorchocr.postprocess import build_post_process from pytorchocr.utils.utility import get_image_file_list, check_and_read_gif @@ -388,4 +388,4 @@ def main(args): if __name__ == '__main__': - main(utility.parse_args()) \ No newline at end of file + main(utility.parse_args())