add max_text_length to export model
This commit is contained in:
parent
b566bcbbaa
commit
d36c19ce1a
|
@ -47,7 +47,7 @@ def main():
|
||||||
char_num = len(getattr(post_process_class, 'character'))
|
char_num = len(getattr(post_process_class, 'character'))
|
||||||
config['Architecture']["Head"]['out_channels'] = char_num
|
config['Architecture']["Head"]['out_channels'] = char_num
|
||||||
model = build_model(config['Architecture'])
|
model = build_model(config['Architecture'])
|
||||||
# init_model(config, model, logger)
|
init_model(config, model, logger)
|
||||||
model.eval()
|
model.eval()
|
||||||
|
|
||||||
save_path = '{}/inference'.format(config['Global']['save_inference_dir'])
|
save_path = '{}/inference'.format(config['Global']['save_inference_dir'])
|
||||||
|
|
Loading…
Reference in New Issue