mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-24 23:33:08 +08:00
test=document_fix
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
|
||||
请参考[文本识别训练教程](./recognition.md)。PaddleOCR对代码进行了模块化,训练不同的识别模型只需要**更换配置文件**即可。以基于Resnet34_vd骨干网络为例:
|
||||
|
||||
<a name="3.1"></a>
|
||||
<a name="3-1"></a>
|
||||
### 3.1 训练
|
||||
|
||||
```
|
||||
@@ -52,7 +52,7 @@ python3 -m paddle.distributed.launch --gpus '0,1,2,3' tools/train.py -c configs
|
||||
### 3.2 评估
|
||||
|
||||
```
|
||||
# GPU 评估, Global.pretrained_model 为待评估模型
|
||||
# GPU评估, Global.pretrained_model为待评估模型
|
||||
python3 -m paddle.distributed.launch --gpus '0' tools/eval.py -c configs/rec/rec_r34_vd_tps_bilstm_att.yml -o Global.pretrained_model={path/to/weights}/best_accuracy
|
||||
```
|
||||
|
||||
@@ -60,7 +60,6 @@ python3 -m paddle.distributed.launch --gpus '0' tools/eval.py -c configs/rec/rec
|
||||
### 3.3 预测
|
||||
|
||||
```
|
||||
# 预测使用的配置文件必须与训练一致
|
||||
python3 tools/infer_rec.py -c configs/rec/rec_r34_vd_tps_bilstm_att.yml -o Global.pretrained_model={path/to/weights}/best_accuracy Global.infer_img=doc/imgs_words/en/word_1.png
|
||||
```
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
请参考[文本识别训练教程](./recognition.md)。PaddleOCR对代码进行了模块化,训练不同的识别模型只需要**更换配置文件**即可。 以基于Resnet34_vd骨干网络为例:
|
||||
|
||||
<a name="3.1"></a>
|
||||
<a name="3-1"></a>
|
||||
### 3.1 训练
|
||||
|
||||
```
|
||||
@@ -53,7 +53,7 @@ python3 -m paddle.distributed.launch --gpus '0,1,2,3' tools/train.py -c configs
|
||||
### 3.2 评估
|
||||
|
||||
```
|
||||
# GPU 评估, Global.pretrained_model 为待评估模型
|
||||
# GPU评估, Global.pretrained_model为待评估模型
|
||||
python3 -m paddle.distributed.launch --gpus '0' tools/eval.py -c configs/rec/rec_r34_vd_none_none_ctc.yml -o Global.pretrained_model={path/to/weights}/best_accuracy
|
||||
```
|
||||
|
||||
@@ -61,7 +61,6 @@ python3 -m paddle.distributed.launch --gpus '0' tools/eval.py -c configs/rec/rec
|
||||
### 3.3 预测
|
||||
|
||||
```
|
||||
# 预测使用的配置文件必须与训练一致
|
||||
python3 tools/infer_rec.py -c configs/rec/rec_r34_vd_none_none_ctc.yml -o Global.pretrained_model={path/to/weights}/best_accuracy Global.infer_img=doc/imgs_words/en/word_1.png
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user