未验证 提交 af874033 编写于 作者: S shaohua.zhang 提交者: GitHub

fix the assignment of a var

上级 cd560324
...@@ -394,8 +394,9 @@ def preprocess(): ...@@ -394,8 +394,9 @@ def preprocess():
startup_program = fluid.Program() startup_program = fluid.Program()
train_program = fluid.Program() train_program = fluid.Program()
contain_det = False
if alg in ['EAST', 'DB']: if alg in ['EAST', 'DB']:
contain_det = True train_alg_type = 'det'
else:
train_alg_type = 'rec'
return startup_program, train_program, place, config, contain_det return startup_program, train_program, place, config, train_alg_type
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册