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
243bd994
Commit
243bd994
authored
Apr 21, 2021
by
Jethong
Browse files
add mode
parent
2f978f63
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
configs/e2e/e2e_r50_vd_pg.yml
configs/e2e/e2e_r50_vd_pg.yml
+1
-1
ppocr/data/imaug/label_ops.py
ppocr/data/imaug/label_ops.py
+2
-2
ppocr/data/imaug/pg_process.py
ppocr/data/imaug/pg_process.py
+1
-1
No files found.
configs/e2e/e2e_r50_vd_pg.yml
View file @
243bd994
...
...
@@ -63,7 +63,7 @@ PostProcess:
Metric
:
name
:
E2EMetric
mode
:
A
#
A or B
mode
:
A
#
two ways for eval, A: label from txt, B: label from gt_mat
gt_mat_dir
:
./train_data/total_text/gt
# the dir of gt_mat
character_dict_path
:
ppocr/utils/ic15_dict.txt
main_indicator
:
f_score_e2e
...
...
ppocr/data/imaug/label_ops.py
View file @
243bd994
...
...
@@ -217,7 +217,7 @@ class E2ELabelEncode_test(BaseRecLabelEncode):
boxes
=
np
.
array
(
boxes
,
dtype
=
np
.
float32
)
txt_tags
=
np
.
array
(
txt_tags
,
dtype
=
np
.
bool
)
data
[
'polys'
]
=
boxes
data
[
'
ignore_
tags'
]
=
txt_tags
data
[
'tags'
]
=
txt_tags
temp_texts
=
[]
for
text
in
txts
:
text
=
text
.
lower
()
...
...
@@ -255,7 +255,7 @@ class E2ELabelEncode_train(object):
data
[
'polys'
]
=
boxes
data
[
'texts'
]
=
txts
data
[
'
ignore_
tags'
]
=
txt_tags
data
[
'tags'
]
=
txt_tags
return
data
...
...
ppocr/data/imaug/pg_process.py
View file @
243bd994
...
...
@@ -750,7 +750,7 @@ class PGProcessTrain(object):
input_size
=
512
im
=
data
[
'image'
]
text_polys
=
data
[
'polys'
]
text_tags
=
data
[
'
ignore_
tags'
]
text_tags
=
data
[
'tags'
]
text_strs
=
data
[
'texts'
]
h
,
w
,
_
=
im
.
shape
text_polys
,
text_tags
,
hv_tags
=
self
.
check_and_validate_polys
(
...
...
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