"git@developer.sourcefind.cn:chenpangpang/diffusers.git" did not exist on "691d8d3e1559a27496cad5ef343b5e31614f134e"
Unverified Commit bc85ebd4 authored by xiaoting's avatar xiaoting Committed by GitHub
Browse files

Merge pull request #157 from LDOUBLEV/develop

fix rec doc typo
parents 63dce99b f5f71344
...@@ -209,7 +209,7 @@ infer_img: doc/imgs_words/en/word_1.png ...@@ -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
``` ```
预测图片: 预测图片:
......
...@@ -114,7 +114,7 @@ def merge_config(config): ...@@ -114,7 +114,7 @@ def merge_config(config):
global_config[key] = value global_config[key] = value
else: else:
sub_keys = key.split('.') 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]] cur = global_config[sub_keys[0]]
for idx, sub_key in enumerate(sub_keys[1:]): for idx, sub_key in enumerate(sub_keys[1:]):
assert (sub_key in cur) assert (sub_key in cur)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment