未验证 提交 43c56652 编写于 作者: T Thomas Young 提交者: GitHub

add some condition

add some condition and comment
上级 ac7e226f
...@@ -125,10 +125,10 @@ def start_standard_model(serving_port): # pylint: disable=doc-string-missing ...@@ -125,10 +125,10 @@ def start_standard_model(serving_port): # pylint: disable=doc-string-missing
for idx, single_model in enumerate(model): for idx, single_model in enumerate(model):
infer_op_name = "general_infer" infer_op_name = "general_infer"
if len(model) == 2 and idx == 0: #Temporary support for OCR model,it will be completely revised later
#If you want to use this, C++ server must compile with WITH_OPENCV option.
if len(model) == 2 and idx == 0 and model == 'ocr_det_model':
infer_op_name = "general_detection" infer_op_name = "general_detection"
else:
infer_op_name = "general_infer"
general_infer_op = op_maker.create(infer_op_name) general_infer_op = op_maker.create(infer_op_name)
op_seq_maker.add_op(general_infer_op) op_seq_maker.add_op(general_infer_op)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册