diff --git a/python/paddle_serving_server/serve.py b/python/paddle_serving_server/serve.py index 02d7cec8dc65fc165b51396a624f5cb70a269aeb..a620093eeec21c1af5ff34bcf562af64206b5723 100755 --- a/python/paddle_serving_server/serve.py +++ b/python/paddle_serving_server/serve.py @@ -125,10 +125,10 @@ def start_standard_model(serving_port): # pylint: disable=doc-string-missing for idx, single_model in enumerate(model): 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" - else: - infer_op_name = "general_infer" general_infer_op = op_maker.create(infer_op_name) op_seq_maker.add_op(general_infer_op)