From bfcc5f737edc132e3221f8dbf3d2362c4bf9300f Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Sun, 25 Apr 2021 14:09:38 +0800 Subject: [PATCH] fix hubserving --- deploy/hubserving/ocr_system/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/hubserving/ocr_system/module.py b/deploy/hubserving/ocr_system/module.py index 7a65db09..c0206787 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: