diff --git a/docs/en/extension/paddle_inference_en.md b/docs/en/extension/paddle_inference_en.md index 3f0f29830aa0e612c122d831f3c12cb015874f23..14385b62d91e3677af52887ae48e14b4a2608f89 100644 --- a/docs/en/extension/paddle_inference_en.md +++ b/docs/en/extension/paddle_inference_en.md @@ -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: ``` -python ./predict.py \ +python ./tools/infer/predict.py \ -i=./test.jpeg \ -m=./resnet50-vd/model \ -p=./resnet50-vd/params \ diff --git a/docs/zh_CN/extension/paddle_inference.md b/docs/zh_CN/extension/paddle_inference.md index 4490c8a1b0d0157466752d4a3dec043e6c5d41cd..17300278a025c7d1ef28350d6e25c5d7d4acd609 100644 --- a/docs/zh_CN/extension/paddle_inference.md +++ b/docs/zh_CN/extension/paddle_inference.md @@ -100,7 +100,7 @@ python tools/export_model.py \ 在模型库的 `tools/infer/predict.py` 中提供了完整的示例,只需执行下述命令即可完成预测: ``` -python ./predict.py \ +python ./tools/infer/predict.py \ -i=./test.jpeg \ -m=./resnet50-vd/model \ -p=./resnet50-vd/params \ @@ -122,7 +122,7 @@ python ./predict.py \ 注意: 当启用benchmark时,默认开启tersorrt进行预测 - + 构建预测引擎: @@ -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) -