未验证 提交 5a598882 编写于 作者: L littletomatodonkey 提交者: GitHub

Merge pull request #197 from littletomatodonkey/fix_infer_doc

fix infer doc
...@@ -100,7 +100,7 @@ python tools/export_model.py \ ...@@ -100,7 +100,7 @@ python tools/export_model.py \
The complete example is provided in the `tools/infer/predict.py`,just execute the following command to complete the prediction: The complete example is provided in the `tools/infer/predict.py`,just execute the following command to complete the prediction:
``` ```
python ./predict.py \ python ./tools/infer/predict.py \
-i=./test.jpeg \ -i=./test.jpeg \
-m=./resnet50-vd/model \ -m=./resnet50-vd/model \
-p=./resnet50-vd/params \ -p=./resnet50-vd/params \
......
...@@ -100,7 +100,7 @@ python tools/export_model.py \ ...@@ -100,7 +100,7 @@ python tools/export_model.py \
在模型库的 `tools/infer/predict.py` 中提供了完整的示例,只需执行下述命令即可完成预测: 在模型库的 `tools/infer/predict.py` 中提供了完整的示例,只需执行下述命令即可完成预测:
``` ```
python ./predict.py \ python ./tools/infer/predict.py \
-i=./test.jpeg \ -i=./test.jpeg \
-m=./resnet50-vd/model \ -m=./resnet50-vd/model \
-p=./resnet50-vd/params \ -p=./resnet50-vd/params \
...@@ -122,7 +122,7 @@ python ./predict.py \ ...@@ -122,7 +122,7 @@ python ./predict.py \
注意: 注意:
当启用benchmark时,默认开启tersorrt进行预测 当启用benchmark时,默认开启tersorrt进行预测
构建预测引擎: 构建预测引擎:
...@@ -259,4 +259,3 @@ outputs = exe.run(compiled_program, ...@@ -259,4 +259,3 @@ outputs = exe.run(compiled_program,
``` ```
上述执行预测时候的参数说明可以参考官网 [fluid.Executor](https://www.paddlepaddle.org.cn/documentation/docs/zh/api_cn/executor_cn/Executor_cn.html) 上述执行预测时候的参数说明可以参考官网 [fluid.Executor](https://www.paddlepaddle.org.cn/documentation/docs/zh/api_cn/executor_cn/Executor_cn.html)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册