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
cafea5dc
Commit
cafea5dc
authored
Jan 20, 2021
by
xmy0916
Browse files
fix char dict
parent
f1a62304
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
configs/rec/multi_language/generate_multi_language_configs.py
...igs/rec/multi_language/generate_multi_language_configs.py
+1
-0
configs/rec/multi_language/rec_multi_language_lite_train.yml
configs/rec/multi_language/rec_multi_language_lite_train.yml
+1
-1
ppocr/utils/dict/german_dict.txt
ppocr/utils/dict/german_dict.txt
+4
-4
No files found.
configs/rec/multi_language/generate_multi_language_configs.py
View file @
cafea5dc
...
@@ -77,6 +77,7 @@ class ArgsParser(ArgumentParser):
...
@@ -77,6 +77,7 @@ class ArgsParser(ArgumentParser):
global_config
[
'Global'
][
'save_model_dir'
]
=
'./output/rec_{}_lite'
.
format
(
type
[
0
])
global_config
[
'Global'
][
'save_model_dir'
]
=
'./output/rec_{}_lite'
.
format
(
type
[
0
])
global_config
[
'Train'
][
'dataset'
][
'label_file_list'
]
=
[
"train_data/{}_train.txt"
.
format
(
type
[
0
])]
global_config
[
'Train'
][
'dataset'
][
'label_file_list'
]
=
[
"train_data/{}_train.txt"
.
format
(
type
[
0
])]
global_config
[
'Eval'
][
'dataset'
][
'label_file_list'
]
=
[
"train_data/{}_val.txt"
.
format
(
type
[
0
])]
global_config
[
'Eval'
][
'dataset'
][
'label_file_list'
]
=
[
"train_data/{}_val.txt"
.
format
(
type
[
0
])]
global_config
[
'Global'
][
'character_type'
]
=
type
[
0
]
assert
(
assert
(
os
.
path
.
isfile
(
os
.
path
.
join
(
project_path
,
global_config
[
'Global'
][
'character_dict_path'
]))
os
.
path
.
isfile
(
os
.
path
.
join
(
project_path
,
global_config
[
'Global'
][
'character_dict_path'
]))
),
"Loss default dictionary file {}_dict.txt.You can download it from
\
),
"Loss default dictionary file {}_dict.txt.You can download it from
\
...
...
configs/rec/multi_language/rec_multi_language_lite_train.yml
View file @
cafea5dc
...
@@ -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
:
ch
character_type
:
max_text_length
:
25
max_text_length
:
25
infer_mode
:
False
infer_mode
:
False
use_space_char
:
True
use_space_char
:
True
...
...
ppocr/utils/dict/german_dict.txt
View file @
cafea5dc
...
@@ -137,7 +137,7 @@ z
...
@@ -137,7 +137,7 @@ z
Ṡ
Ṡ
‘
‘
€
€
店
©
旺
ª
潮
«
酒
¬
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