diff --git a/deploy/hubserving/ocr_det/module.py b/deploy/hubserving/ocr_det/module.py index 595f4cea9c74664dd1578735f062dbe4bac74a55..c7d253f5ec8d626279c9eb493e15d1c4c83cfbfd 100644 --- a/deploy/hubserving/ocr_det/module.py +++ b/deploy/hubserving/ocr_det/module.py @@ -18,6 +18,7 @@ import paddlehub as hub from tools.infer.utility import base64_to_cv2 from tools.infer.predict_det import TextDetector from tools.infer.utility import parse_args +from deploy.hubserving.ocr_system.params import read_params @moduleinfo( @@ -57,7 +58,6 @@ class OCRDet(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: diff --git a/deploy/hubserving/ocr_rec/module.py b/deploy/hubserving/ocr_rec/module.py index 70998241dcd2ed04ae94dd3eb33d5d18244652d6..2bec3fcdbe00e3693557815b8ed81dd38f0c3b28 100644 --- a/deploy/hubserving/ocr_rec/module.py +++ b/deploy/hubserving/ocr_rec/module.py @@ -16,6 +16,7 @@ import paddlehub as hub from tools.infer.utility import base64_to_cv2 from tools.infer.predict_rec import TextRecognizer from tools.infer.utility import parse_args +from deploy.hubserving.ocr_rec.params import read_params @moduleinfo( @@ -55,7 +56,6 @@ class OCRRec(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: diff --git a/deploy/hubserving/ocr_system/module.py b/deploy/hubserving/ocr_system/module.py index c0206787005224ac24b6aa436626ab3d8b5b220e..cbef8086ecff930e272bee16c16e52e2c934b0ad 100644 --- a/deploy/hubserving/ocr_system/module.py +++ b/deploy/hubserving/ocr_system/module.py @@ -19,7 +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 +from deploy.hubserving.ocr_system.params import read_params @moduleinfo(