mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-12-27 23:18:23 +00:00
fix link and comments
This commit is contained in:
parent
3d527257fe
commit
87a34c4b05
@ -49,13 +49,13 @@
|
||||
<a name="4-1"></a>
|
||||
### 4.1 Python推理
|
||||
|
||||
首先将EAST文本检测训练过程中保存的模型,转换成inference model。以基于Resnet50_vd骨干网络,在ICDAR2015英文数据集训练的模型为例( 训练模型](https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_r50_vd_east_v2.0_train.tar)),可以使用如下命令进行转换:
|
||||
首先将EAST文本检测训练过程中保存的模型,转换成inference model。以基于Resnet50_vd骨干网络,在ICDAR2015英文数据集训练的模型为例([训练模型](https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_r50_vd_east_v2.0_train.tar)),可以使用如下命令进行转换:
|
||||
|
||||
```shell
|
||||
python3 tools/export_model.py -c configs/det/det_r50_vd_east.yml -o Global.pretrained_model=./det_r50_vd_east_v2.0_train/best_accuracy Global.save_inference_dir=./inference/det_r50_east/
|
||||
```
|
||||
|
||||
执行预测:
|
||||
EAST文本检测模型推理,需要设置参数--det_algorithm="EAST",执行预测:
|
||||
```shell
|
||||
python3 tools/infer/predict_det.py --image_dir="./doc/imgs_en/img_10.jpg" --det_model_dir="./inference/det_r50_east/" --det_algorithm="EAST"
|
||||
```
|
||||
|
||||
@ -56,7 +56,7 @@ First, convert the model saved in the EAST text detection training process into
|
||||
python3 tools/export_model.py -c configs/det/det_r50_vd_east.yml -o Global.pretrained_model=./det_r50_vd_east_v2.0_train/best_accuracy Global.save_inference_dir=./inference/det_r50_east/
|
||||
```
|
||||
|
||||
The Inference:
|
||||
For EAST text detection model inference, you need to set the parameter --det_algorithm="EAST", run the following command:
|
||||
```shell
|
||||
python3 tools/infer/predict_det.py --image_dir="./doc/imgs_en/img_10.jpg" --det_model_dir="./inference/det_r50_east/" --det_algorithm="EAST"
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user