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
dd093c4e
"git@developer.sourcefind.cn:dcuai/dlexamples.git" did not exist on "0fd8347d797c0882c759802497078b5823d03d0a"
Commit
dd093c4e
authored
Apr 28, 2022
by
Topdu
Browse files
add svtr and nrtr docs
parent
0b4106a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
doc/doc_ch/algorithm_rec_svtr.md
doc/doc_ch/algorithm_rec_svtr.md
+7
-7
No files found.
doc/doc_ch/algorithm_rec_svtr.md
View file @
dd093c4e
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
| SVTR |IC13
<br/>
857 | SVT |IIIT5k
<br/>
3000 |IC15
<br/>
1811| SVTP |CUTE80 | Avg_6 |IC15
<br/>
2077 |IC13
<br/>
1015 |IC03
<br/>
867|IC03
<br/>
860|Avg_10 |Chinese| 英文
<br/>
链接 | 中文
<br/>
链接 |
| SVTR |IC13
<br/>
857 | SVT |IIIT5k
<br/>
3000 |IC15
<br/>
1811| SVTP |CUTE80 | Avg_6 |IC15
<br/>
2077 |IC13
<br/>
1015 |IC03
<br/>
867|IC03
<br/>
860|Avg_10 |Chinese| 英文
<br/>
链接 | 中文
<br/>
链接 |
|:-----:|:------:|:-----:|:---------:|:------:|:-----:|:-----:|:-----:|:-------:|:-------:|:-----:|:-----:|:-----:|:-----:|:---------:|:---------:|
|:-----:|:------:|:-----:|:---------:|:------:|:-----:|:-----:|:-----:|:-------:|:-------:|:-----:|:-----:|:-----:|:-----:|:---------:|:---------:|
| Large | 97.20 | 91.65 | 96.30 | 86.58 | 88.37 | 95.14 | 92.82 | 84.54 | 96.35 | 96.54 | 96.74 | 92.24 | 72.10 |
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
dygraph_v2.1/rec
/rec_svtr_large_en_train/.tar
)
|
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
dygraph_v2.1/rec
/rec_svtr_large_ch_train/.tar
)
|
| Large | 97.20 | 91.65 | 96.30 | 86.58 | 88.37 | 95.14 | 92.82 | 84.54 | 96.35 | 96.54 | 96.74 | 92.24 | 72.10 |
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
PP-OCRv3/chinese
/rec_svtr_large_
none_ctc_
en_train/.tar
)
|
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
PP-OCRv3/chinese
/rec_svtr_large_
none_ctc_
ch_train/.tar
)
|
| Base | 97.08 | 91.50 | 96.03 | 85.20 | 89.92 | 91.67 | 92.33 | 83.73 | 95.66 | 95.62 | 95.81 | 91.61 | 71.40 |
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
dygraph_v2.1/rec/rec_r31_sar
_train.tar
)
|
[
TODO
](
)
|
| Base | 97.08 | 91.50 | 96.03 | 85.20 | 89.92 | 91.67 | 92.33 | 83.73 | 95.66 | 95.62 | 95.81 | 91.61 | 71.40 |
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
PP-OCRv3/chinese/rec_svtr_base_none_ctc_en
_train.tar
)
|
-
|
| Small | 95.92 | 93.04 | 95.03 | 84.70 | 87.91 | 92.01 | 91.63 | 82.72 | 94.88 | 96.08 | 96.28 | 91.02 | 69.00 |
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
dygraph_v2.1/rec
/rec_svtr_small_en_train/.tar
)
|
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
dygraph_v2.1/rec
/rec_svtr_small_ch_train/.tar
)
|
| Small | 95.92 | 93.04 | 95.03 | 84.70 | 87.91 | 92.01 | 91.63 | 82.72 | 94.88 | 96.08 | 96.28 | 91.02 | 69.00 |
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
PP-OCRv3/chinese
/rec_svtr_small_
none_ctc_
en_train/.tar
)
|
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
PP-OCRv3/chinese
/rec_svtr_small_
none_ctc_
ch_train/.tar
)
|
| Tiny | 96.85 | 91.34 | 94.53 | 83.99 | 85.43 | 89.24 | 90.87 | 80.55 | 95.37 | 95.27 | 95.70 | 90.13 | 67.90 |
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
dygraph_v2.1/rec
/rec_svtr_tiny_en_train/.tar
)
|
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
dygraph_v2.1/rec
/rec_svtr_tiny_ch_train/.tar
)
|
| Tiny | 96.85 | 91.34 | 94.53 | 83.99 | 85.43 | 89.24 | 90.87 | 80.55 | 95.37 | 95.27 | 95.70 | 90.13 | 67.90 |
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
PP-OCRv3/chinese
/rec_svtr_tiny_
none_ctc_
en_train/.tar
)
|
[
模型&配置
](
https://paddleocr.bj.bcebos.com/
PP-OCRv3/chinese
/rec_svtr_tiny_
none_ctc_
ch_train/.tar
)
|
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
```
shell
```
shell
# 注意将pretrained_model的路径设置为本地路径。
# 注意将pretrained_model的路径设置为本地路径。
python3 tools/eval.py
-c
./rec_svtr_tiny_en_train/rec_svtr_tiny_6local_6global_stn_en.yml
-o
Global.pretrained_model
=
./rec_svtr_tiny_en_train/best_accuracy
python3 tools/eval.py
-c
./rec_svtr_tiny_en_train/rec_svtr_tiny_6local_6global_stn_en.yml
-o
Global.pretrained_model
=
./rec_svtr_tiny_
none_ctc_
en_train/best_accuracy
# 测试中文数据集时,需将`scene_val`数据集修改为`scene_test`,才能得到论文中的结果。
# 测试中文数据集时,需将`scene_val`数据集修改为`scene_test`,才能得到论文中的结果。
```
```
...
@@ -81,7 +81,7 @@ python3 tools/eval.py -c ./rec_svtr_tiny_en_train/rec_svtr_tiny_6local_6global_s
...
@@ -81,7 +81,7 @@ python3 tools/eval.py -c ./rec_svtr_tiny_en_train/rec_svtr_tiny_6local_6global_s
使用如下命令进行单张图片预测:
使用如下命令进行单张图片预测:
```
shell
```
shell
# 注意将pretrained_model的路径设置为本地路径。
# 注意将pretrained_model的路径设置为本地路径。
python3 tools/infer_rec.py
-c
./rec_svtr_tiny_en_train/rec_svtr_tiny_6local_6global_stn_en.yml
-o
Global.infer_img
=
'./doc/imgs_words_en/word_10.png'
Global.pretrained_model
=
./rec_svtr_tiny_en_train/best_accuracy Global.load_static_weights
=
false
python3 tools/infer_rec.py
-c
./rec_svtr_tiny_en_train/rec_svtr_tiny_6local_6global_stn_en.yml
-o
Global.infer_img
=
'./doc/imgs_words_en/word_10.png'
Global.pretrained_model
=
./rec_svtr_tiny_
none_ctc_
en_train/best_accuracy Global.load_static_weights
=
false
# 预测文件夹下所有图像时,可修改infer_img为文件夹,如 Global.infer_img='./doc/imgs_words_en/'。
# 预测文件夹下所有图像时,可修改infer_img为文件夹,如 Global.infer_img='./doc/imgs_words_en/'。
```
```
...
@@ -95,7 +95,7 @@ python3 tools/infer_rec.py -c ./rec_svtr_tiny_en_train/rec_svtr_tiny_6local_6glo
...
@@ -95,7 +95,7 @@ python3 tools/infer_rec.py -c ./rec_svtr_tiny_en_train/rec_svtr_tiny_6local_6glo
```
shell
```
shell
# 注意将pretrained_model的路径设置为本地路径。
# 注意将pretrained_model的路径设置为本地路径。
python3 tools/export_model.py
-c
./rec_svtr_tiny_en_train/rec_svtr_tiny_6local_6global_stn_en.yml
-o
Global.pretrained_model
=
./rec_svtr_tiny_en_train/best_accuracy Global.save_inference_dir
=
./inference/rec_svtr_tiny_stn_en/ Global.load_static_weights
=
False
python3 tools/export_model.py
-c
./rec_svtr_tiny_en_train/rec_svtr_tiny_6local_6global_stn_en.yml
-o
Global.pretrained_model
=
./rec_svtr_tiny_
none_ctc_
en_train/best_accuracy Global.save_inference_dir
=
./inference/rec_svtr_tiny_stn_en/ Global.load_static_weights
=
False
```
```
执行如下命令进行模型推理:
执行如下命令进行模型推理:
...
...
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