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
6eaf11f1
Commit
6eaf11f1
authored
Oct 15, 2021
by
tink2123
Browse files
fix lower
parent
d1d02e29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
ppocr/data/imaug/label_ops.py
ppocr/data/imaug/label_ops.py
+1
-0
ppocr/postprocess/rec_postprocess.py
ppocr/postprocess/rec_postprocess.py
+0
-1
No files found.
ppocr/data/imaug/label_ops.py
View file @
6eaf11f1
...
@@ -99,6 +99,7 @@ class BaseRecLabelEncode(object):
...
@@ -99,6 +99,7 @@ class BaseRecLabelEncode(object):
self
.
max_text_len
=
max_text_length
self
.
max_text_len
=
max_text_length
self
.
beg_str
=
"sos"
self
.
beg_str
=
"sos"
self
.
end_str
=
"eos"
self
.
end_str
=
"eos"
self
.
lower
=
False
if
character_dict_path
is
None
:
if
character_dict_path
is
None
:
logger
=
get_logger
()
logger
=
get_logger
()
...
...
ppocr/postprocess/rec_postprocess.py
View file @
6eaf11f1
...
@@ -29,7 +29,6 @@ class BaseRecLabelDecode(object):
...
@@ -29,7 +29,6 @@ class BaseRecLabelDecode(object):
if
character_dict_path
is
None
:
if
character_dict_path
is
None
:
self
.
character_str
=
"0123456789abcdefghijklmnopqrstuvwxyz"
self
.
character_str
=
"0123456789abcdefghijklmnopqrstuvwxyz"
dict_character
=
list
(
self
.
character_str
)
dict_character
=
list
(
self
.
character_str
)
self
.
lower
=
True
else
:
else
:
with
open
(
character_dict_path
,
"rb"
)
as
fin
:
with
open
(
character_dict_path
,
"rb"
)
as
fin
:
lines
=
fin
.
readlines
()
lines
=
fin
.
readlines
()
...
...
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