Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
2f74c274
Commit
2f74c274
authored
Apr 28, 2022
by
lubin10
Browse files
test=document_fix
parent
97725a64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
doc/doc_ch/algorithm_rec_rare.md
doc/doc_ch/algorithm_rec_rare.md
+2
-3
doc/doc_ch/algorithm_rec_rosetta.md
doc/doc_ch/algorithm_rec_rosetta.md
+2
-3
No files found.
doc/doc_ch/algorithm_rec_rare.md
View file @
2f74c274
...
...
@@ -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
```
...
...
doc/doc_ch/algorithm_rec_rosetta.md
View file @
2f74c274
...
...
@@ -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
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment