提交 27d71163 编写于 作者: L LDOUBLEV

fix hubserving

上级 6f41d07b
......@@ -15,6 +15,7 @@ import paddlehub as hub
from tools.infer.utility import base64_to_cv2
from tools.infer.predict_det import TextDetector
from deploy.hubserving.ocr_det.params import read_params
@moduleinfo(
......
......@@ -14,6 +14,7 @@ import paddlehub as hub
from tools.infer.utility import base64_to_cv2
from tools.infer.predict_rec import TextRecognizer
from deploy.hubserving.ocr_rec.params import read_params
@moduleinfo(
......@@ -28,7 +29,6 @@ class OCRRec(hub.Module):
"""
initialize with the necessary elements
"""
from ocr_rec.params import read_params
cfg = read_params()
cfg.use_gpu = use_gpu
......
......@@ -17,6 +17,7 @@ import paddlehub as hub
from tools.infer.utility import base64_to_cv2
from tools.infer.predict_system import TextSystem
from deploy.hubserving.ocr_system.params import read_params
@moduleinfo(
......@@ -31,7 +32,6 @@ class OCRSystem(hub.Module):
"""
initialize with the necessary elements
"""
from ocr_system.params import read_params
cfg = read_params()
cfg.use_gpu = use_gpu
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册