diff --git a/deploy/hubserving/ocr_system/module.py b/deploy/hubserving/ocr_system/module.py index 7a65db09cecac6b49804bf260f3e738177dd3cbf..c0206787005224ac24b6aa436626ab3d8b5b220e 100644 --- a/deploy/hubserving/ocr_system/module.py +++ b/deploy/hubserving/ocr_system/module.py @@ -19,6 +19,7 @@ import paddlehub as hub from tools.infer.utility import base64_to_cv2 from tools.infer.predict_system import TextSystem from tools.infer.utility import parse_args +from deploy.hubserving.ocr_det.params import read_params @moduleinfo( @@ -58,7 +59,6 @@ class OCRSystem(hub.Module): sys.argv = sys.argv[:1] cfg = parse_args() - from ocr_det.params import read_params update_cfg_map = vars(read_params()) for key in update_cfg_map: