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
fe694ae9
Commit
fe694ae9
authored
Jan 20, 2021
by
xmy0916
Browse files
fix bugs
parent
a301e05e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
configs/rec/multi_language/rec_multi_language_lite_train.yml
configs/rec/multi_language/rec_multi_language_lite_train.yml
+1
-1
ppocr/postprocess/rec_postprocess.py
ppocr/postprocess/rec_postprocess.py
+3
-1
No files found.
configs/rec/multi_language/rec_multi_language_lite_train.yml
View file @
fe694ae9
...
@@ -17,7 +17,7 @@ Global:
...
@@ -17,7 +17,7 @@ Global:
# for data or label process
# for data or label process
character_dict_path
:
character_dict_path
:
# Set the language of training, if set, select the default dictionary file
# Set the language of training, if set, select the default dictionary file
character_type
:
character_type
:
ch
max_text_length
:
25
max_text_length
:
25
infer_mode
:
False
infer_mode
:
False
use_space_char
:
True
use_space_char
:
True
...
...
ppocr/postprocess/rec_postprocess.py
View file @
fe694ae9
...
@@ -24,7 +24,9 @@ class BaseRecLabelDecode(object):
...
@@ -24,7 +24,9 @@ class BaseRecLabelDecode(object):
character_type
=
'ch'
,
character_type
=
'ch'
,
use_space_char
=
False
):
use_space_char
=
False
):
support_character_type
=
[
support_character_type
=
[
'ch'
,
'en'
,
'en_sensitive'
,
'french'
,
'german'
,
'japan'
,
'korean'
'ch'
,
'en'
,
'en_sensitive'
,
'french'
,
'german'
,
'japan'
,
'korean'
,
'it'
,
'xi'
,
'pu'
,
'ru'
,
'ar'
,
'ta'
,
'ug'
,
'fa'
,
'ur'
,
'rs'
,
'oc'
,
'rsc'
,
'bg'
,
'uk'
,
'be'
,
'te'
,
'ka'
,
'chinese_cht'
,
'hi'
,
'mr'
,
'ne'
]
]
assert
character_type
in
support_character_type
,
"Only {} are supported now but get {}"
.
format
(
assert
character_type
in
support_character_type
,
"Only {} are supported now but get {}"
.
format
(
support_character_type
,
character_type
)
support_character_type
,
character_type
)
...
...
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