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
c6a0e8d7
Commit
c6a0e8d7
authored
Jun 08, 2020
by
LDOUBLEV
Browse files
fix rec doc typo
parent
ce2674dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
doc/recognition.md
doc/recognition.md
+1
-1
tools/program.py
tools/program.py
+1
-1
No files found.
doc/recognition.md
View file @
c6a0e8d7
...
...
@@ -209,7 +209,7 @@ infer_img: doc/imgs_words/en/word_1.png
```
# 预测中文结果
python3 tools/infer_rec.py -c configs/rec/rec_chinese_lite_train.yml -o Global.checkpoints={path/to/weights}/best_accuracy
TestReader
.infer_img=doc/imgs_words/ch/word_1.jpg
python3 tools/infer_rec.py -c configs/rec/rec_chinese_lite_train.yml -o Global.checkpoints={path/to/weights}/best_accuracy
Global
.infer_img=doc/imgs_words/ch/word_1.jpg
```
预测图片:
...
...
tools/program.py
View file @
c6a0e8d7
...
...
@@ -114,7 +114,7 @@ def merge_config(config):
global_config
[
key
]
=
value
else
:
sub_keys
=
key
.
split
(
'.'
)
assert
(
sub_keys
[
0
]
in
global_config
)
assert
(
sub_keys
[
0
]
in
global_config
)
,
"the sub_keys can only be one of global_config: {}, but get: {}, please check your running command"
.
format
(
global_config
.
keys
(),
sub_keys
[
0
])
cur
=
global_config
[
sub_keys
[
0
]]
for
idx
,
sub_key
in
enumerate
(
sub_keys
[
1
:]):
assert
(
sub_key
in
cur
)
...
...
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