fix char dict

This commit is contained in:
xmy0916 2021-01-20 20:06:07 +08:00
parent f1a623040c
commit cafea5dcbe
3 changed files with 6 additions and 5 deletions

View File

@ -77,6 +77,7 @@ class ArgsParser(ArgumentParser):
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['Eval']['dataset']['label_file_list'] = ["train_data/{}_val.txt".format(type[0])]
global_config['Global']['character_type'] = type[0]
assert(
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 \

View File

@ -17,7 +17,7 @@ Global:
# for data or label process
character_dict_path:
# Set the language of training, if set, select the default dictionary file
character_type: ch
character_type:
max_text_length: 25
infer_mode: False
use_space_char: True

View File

@ -137,7 +137,7 @@ z
©
ª
«
¬