提交 937f0609 编写于 作者: C cuicheng01

update PP-LCNet.md

上级 9b3b7759
...@@ -215,7 +215,7 @@ MobileNetV3_large_x0_75 | 64.53 | 151 | ...@@ -215,7 +215,7 @@ MobileNetV3_large_x0_75 | 64.53 | 151 |
| PPLCNet_x1_5 | 0.82 | 2.06 | 3.12 | | PPLCNet_x1_5 | 0.82 | 2.06 | 3.12 |
| PPLCNet_x2_0 | 0.94 | 2.58 | 4.08 | | PPLCNet_x2_0 | 0.94 | 2.58 | 4.08 |
**备注:** 精度类型为 FP32,推理过程使用 TensorRT **备注:** 精度类型为 FP32,推理过程使用 TensorRT。
<a name="1.4.3"></a> <a name="1.4.3"></a>
...@@ -264,9 +264,7 @@ filename: docs/images/inference_deployment/whl_demo.jpg, top-5, class_ids: [8, 7 ...@@ -264,9 +264,7 @@ filename: docs/images/inference_deployment/whl_demo.jpg, top-5, class_ids: [8, 7
Predict complete! Predict complete!
``` ```
**备注** **备注**: 更换 PPLCNet 的其他 scale 的模型时,只需替换 `model_name`,如将此时的模型改为 `PPLCNet_x2_0` 时,只需要将 `--model_name=PPLCNet_x1_0` 改为 `--model_name=PPLCNet_x2_0` 即可。
* 更换 PPLCNet 的其他 scale 的模型时,只需替换 `model_name`,如将此时的模型改为 `PPLCNet_x2_0` 时,只需要将 `--model_name=PPLCNet_x1_0` 改为 `--model_name=PPLCNet_x2_0` 即可。
* 在 Python 代码中使用 * 在 Python 代码中使用
...@@ -278,9 +276,7 @@ result=clas.predict(infer_imgs) ...@@ -278,9 +276,7 @@ result=clas.predict(infer_imgs)
print(next(result)) print(next(result))
``` ```
**备注** **备注**`PaddleClas.predict()` 为可迭代对象(`generator`),因此需要使用 `next()` 函数或 `for` 循环对其迭
* `PaddleClas.predict()` 为可迭代对象(`generator`),因此需要使用 `next()` 函数或 `for` 循环对其迭
代调用。每次调用将以 `batch_size` 为单位进行一次预测,并返回预测结果。返回结果示例如下: 代调用。每次调用将以 `batch_size` 为单位进行一次预测,并返回预测结果。返回结果示例如下:
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册