repair a var

This commit is contained in:
shaohua.zhang 2020-07-23 14:07:21 +08:00 committed by GitHub
parent 94e8c3b66d
commit 4d541eb364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ from eval_utils.eval_rec_utils import eval_rec_run
def main():
startup_prog, eval_program, place, config,contain_det = program.preprocess()
startup_prog, eval_program, place, config, train_alg_type = program.preprocess()
eval_build_outputs = program.build(
config, eval_program, startup_prog, mode='test')
eval_fetch_name_list = eval_build_outputs[1]
@ -59,7 +59,7 @@ def main():
init_model(config, eval_program, exe)
if contain_det:
if train_alg_type == 'det':
eval_reader = reader_main(config=config, mode="eval")
eval_info_dict = {'program':eval_program,\
'reader':eval_reader,\