浏览代码

fix openvino

wangsiyuan06 5 年之前
父节点
当前提交
e43c702f4e
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      deploy/openvino/src/paddlex.cpp
  2. 1 1
      docs/deploy/openvino/export_openvino_model.md

+ 2 - 2
deploy/openvino/src/paddlex.cpp

@@ -4,7 +4,7 @@
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
-//     http://www.apache.org/licenses/LICENSE-2.0
+//     http//www.apache.org/licenses/LICENSE-2.0
 //
 // Unless required by applicable law or agreed to in writing, software
 // distributed under the License is distributed on an "AS IS" BASIS,
@@ -169,7 +169,7 @@ bool Model::predict(const cv::Mat& im, DetResult* result) {
     }
   }
   if (outputName.empty()) {
-    std::cerr << "get result node failed!" << std::endl:
+    std::cerr << "get result node failed!" << std::endl;
     return false;
   }
   InferenceEngine::Blob::Ptr output = infer_request.GetBlob(outputName);

+ 1 - 1
docs/deploy/openvino/export_openvino_model.md

@@ -37,7 +37,7 @@ python converter.py --model_dir /path/to/inference_model --save_dir /path/to/ope
 | --model_dir  | Paddle模型路径,请确保__model__, \_\_params__model.yml在同一个目录|
 | --save_dir  | OpenVINO模型保存路径 |
 | --fixed_input_shape  | 模型输入的[W,H] |
-| --data type(option)  | (可选)FP32、FP16,默认为FP32,VPU下的IR需要为FP16 |  
+| --data_type(option)  | (可选)FP32、FP16,默认为FP32,VPU下的IR需要为FP16 |  
 
 **注意**:
 - 由于OpenVINO 从2021.1版本开始支持ONNX的resize-11 OP的原因,请下载OpenVINO 2021.1+的版本