Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#157 from LDOUBLEV/develop
Browse files Browse the repository at this point in the history
fix rec doc typo
  • Loading branch information
tink2123 committed Jun 8, 2020
2 parents 63dce99 + f5f7134 commit bc85ebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/recognition.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

预测图片:
Expand Down
2 changes: 1 addition & 1 deletion tools/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc85ebd

Please sign in to comment.