update doc

pull/928/head
weishengyu 2021-06-20 17:33:26 +08:00
parent 33e6422813
commit 74c8d76b10
1 changed files with 3 additions and 4 deletions

View File

@ -109,15 +109,15 @@ python3.7 python/predict_det.py -c configs/inference_det.yaml
检测的可视化结果如下:
[](../images/recognition/product_demo/wangzai_det_result.jpg)
如果想要修改图像可以在configs/inference_det.yaml中修改infer_imgs的值或使用-o Global.infer_imgs修改
如果想要修改图像,可以在`configs/inference_det.yaml`修改infer_imgs的值或使用-o Global.infer_imgs修改
例如,要使用`images/anmuxi.jpg`可以运行:
```shell script
python3.7 python/predict_det.py -c configs/inference_det.yaml -o Global.infer_imgs=images/anmuxi.jpg
```
如果想使用CPU进行预测可以将配置文件中use_gpu选项设置为False或者执行命令
```
如果想使用CPU进行预测可以将配置文件中`use_gpu`选项设置为`False`,或者执行命令:
```shell script
python3.7 python/predict_det.py -c configs/inference_det.yaml -o Global.use_gpu=False
```
@ -170,7 +170,6 @@ cd deploy
导出inference模型后可以使用下面的命令预测
```shell script
python3.7 python/predict_cls.py -c configs/inference_cls.yaml
```