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
b596e70f
"example/vscode:/vscode.git/clone" did not exist on "aea3b4118c65cb5a7173492c4b2aa2ccaa8f06df"
Commit
b596e70f
authored
Dec 15, 2020
by
MissPenguin
Browse files
fix db eval
parent
7936a998
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
doc/doc_ch/algorithm_overview.md
doc/doc_ch/algorithm_overview.md
+6
-6
doc/doc_en/algorithm_overview_en.md
doc/doc_en/algorithm_overview_en.md
+6
-6
ppocr/postprocess/db_postprocess.py
ppocr/postprocess/db_postprocess.py
+1
-2
tools/infer/predict_det.py
tools/infer/predict_det.py
+2
-1
No files found.
doc/doc_ch/algorithm_overview.md
View file @
b596e70f
...
...
@@ -19,8 +19,8 @@ PaddleOCR开源的文本检测算法列表:
|-|-|-|-|-|-|
|EAST|ResNet50_vd|88.76%|81.36%|84.90%|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_r50_vd_east_v2.0_train.tar
)
|
|EAST|MobileNetV3|78.24%|79.15%|78.69%|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_mv3_east_v2.0_train.tar
)
|
|DB|ResNet50_vd|86.41%|78.72%|82.38%|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/det_r50_vd_db_v2.0_train.tar
)
|
|DB|MobileNetV3|77.29%|73.08%|75.12%|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/det_mv3_db_v2.0_train.tar
)
|
|DB|ResNet50_vd|86.41%|78.72%|82.38%|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
det_r50_vd_db_v2.0_train.tar
)
|
|DB|MobileNetV3|77.29%|73.08%|75.12%|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
det_mv3_db_v2.0_train.tar
)
|
|SAST|ResNet50_vd|91.83%|81.80%|86.52%|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_r50_vd_sast_icdar15_v2.0_train.tar
)
)|
在Total-text文本检测公开数据集上,算法效果如下:
...
...
@@ -48,9 +48,9 @@ PaddleOCR基于动态图开源的文本识别算法列表:
|模型|骨干网络|Avg Accuracy|模型存储命名|下载链接|
|-|-|-|-|-|
|Rosetta|Resnet34_vd|80.9%|rec_r34_vd_none_none_ctc|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/rec_r34_vd_none_none_ctc_v2.0_train.tar
)
|
|Rosetta|MobileNetV3|78.05%|rec_mv3_none_none_ctc|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/rec_mv3_none_none_ctc_v2.0_train.tar
)
|
|CRNN|Resnet34_vd|82.76%|rec_r34_vd_none_bilstm_ctc|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/rec_r34_vd_none_bilstm_ctc_v2.0_train.tar
)
|
|CRNN|MobileNetV3|79.97%|rec_mv3_none_bilstm_ctc|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/rec_mv3_none_bilstm_ctc_v2.0_train.tar
)
|
|Rosetta|Resnet34_vd|80.9%|rec_r34_vd_none_none_ctc|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
rec_r34_vd_none_none_ctc_v2.0_train.tar
)
|
|Rosetta|MobileNetV3|78.05%|rec_mv3_none_none_ctc|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
rec_mv3_none_none_ctc_v2.0_train.tar
)
|
|CRNN|Resnet34_vd|82.76%|rec_r34_vd_none_bilstm_ctc|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
rec_r34_vd_none_bilstm_ctc_v2.0_train.tar
)
|
|CRNN|MobileNetV3|79.97%|rec_mv3_none_bilstm_ctc|
[
下载链接
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
rec_mv3_none_bilstm_ctc_v2.0_train.tar
)
|
PaddleOCR文本识别算法的训练和使用请参考文档教程中
[
模型训练/评估中的文本识别部分
](
./recognition.md
)
。
doc/doc_en/algorithm_overview_en.md
View file @
b596e70f
...
...
@@ -21,8 +21,8 @@ On the ICDAR2015 dataset, the text detection result is as follows:
|-|-|-|-|-|-|
|EAST|ResNet50_vd|88.76%|81.36%|84.90%|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_r50_vd_east_v2.0_train.tar
)
|
|EAST|MobileNetV3|78.24%|79.15%|78.69%|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_mv3_east_v2.0_train.tar
)
|
|DB|ResNet50_vd|86.41%|78.72%|82.38%|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/det_r50_vd_db_v2.0_train.tar
)
|
|DB|MobileNetV3|77.29%|73.08%|75.12%|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/det_mv3_db_v2.0_train.tar
)
|
|DB|ResNet50_vd|86.41%|78.72%|82.38%|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
det_r50_vd_db_v2.0_train.tar
)
|
|DB|MobileNetV3|77.29%|73.08%|75.12%|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
det_mv3_db_v2.0_train.tar
)
|
|SAST|ResNet50_vd|91.83%|81.80%|86.52%|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_r50_vd_sast_icdar15_v2.0_train.tar
)
)|
On Total-Text dataset, the text detection result is as follows:
...
...
@@ -49,9 +49,9 @@ Refer to [DTRB](https://arxiv.org/abs/1904.01906), the training and evaluation r
|Model|Backbone|Avg Accuracy|Module combination|Download link|
|-|-|-|-|-|
|Rosetta|Resnet34_vd|80.9%|rec_r34_vd_none_none_ctc|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/rec_r34_vd_none_none_ctc_v2.0_train.tar
)
|
|Rosetta|MobileNetV3|78.05%|rec_mv3_none_none_ctc|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/rec_mv3_none_none_ctc_v2.0_train.tar
)
|
|CRNN|Resnet34_vd|82.76%|rec_r34_vd_none_bilstm_ctc|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/rec_r34_vd_none_bilstm_ctc_v2.0_train.tar
)
|
|CRNN|MobileNetV3|79.97%|rec_mv3_none_bilstm_ctc|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/rec_mv3_none_bilstm_ctc_v2.0_train.tar
)
|
|Rosetta|Resnet34_vd|80.9%|rec_r34_vd_none_none_ctc|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
rec_r34_vd_none_none_ctc_v2.0_train.tar
)
|
|Rosetta|MobileNetV3|78.05%|rec_mv3_none_none_ctc|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
rec_mv3_none_none_ctc_v2.0_train.tar
)
|
|CRNN|Resnet34_vd|82.76%|rec_r34_vd_none_bilstm_ctc|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
rec_r34_vd_none_bilstm_ctc_v2.0_train.tar
)
|
|CRNN|MobileNetV3|79.97%|rec_mv3_none_bilstm_ctc|
[
Download link
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/
en/
rec_mv3_none_bilstm_ctc_v2.0_train.tar
)
|
Please refer to the document for training guide and use of PaddleOCR text recognition algorithms
[
Text recognition model training/evaluation/prediction
](
./doc/doc_en/recognition_en.md
)
ppocr/postprocess/db_postprocess.py
View file @
b596e70f
...
...
@@ -132,8 +132,7 @@ class DBPostProcess(object):
cv2
.
fillPoly
(
mask
,
box
.
reshape
(
1
,
-
1
,
2
).
astype
(
np
.
int32
),
1
)
return
cv2
.
mean
(
bitmap
[
ymin
:
ymax
+
1
,
xmin
:
xmax
+
1
],
mask
)[
0
]
def
__call__
(
self
,
outs_dict
,
shape_list
):
pred
=
outs_dict
[
'maps'
]
def
__call__
(
self
,
pred
,
shape_list
):
if
isinstance
(
pred
,
paddle
.
Tensor
):
pred
=
pred
.
numpy
()
pred
=
pred
[:,
0
,
:,
:]
...
...
tools/infer/predict_det.py
View file @
b596e70f
...
...
@@ -178,7 +178,8 @@ class TextDetector(object):
preds
[
'f_tco'
]
=
outputs
[
2
]
preds
[
'f_tvo'
]
=
outputs
[
3
]
else
:
preds
[
'maps'
]
=
outputs
[
0
]
# preds['maps'] = outputs[0]
preds
=
outputs
[
0
]
post_result
=
self
.
postprocess_op
(
preds
,
shape_list
)
dt_boxes
=
post_result
[
0
][
'points'
]
...
...
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