mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-24 23:33:08 +08:00
fix the assignment of a var
This commit is contained in:
+4
-3
@@ -394,8 +394,9 @@ def preprocess():
|
||||
startup_program = fluid.Program()
|
||||
train_program = fluid.Program()
|
||||
|
||||
contain_det = False
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user