mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-11-02 10:49:19 +00:00
Update program.py
This commit is contained in:
parent
28ab6a3b4b
commit
f5fb36e88c
@ -191,8 +191,8 @@ def build_export(config, main_prog, startup_prog):
|
||||
func_infor = config['Architecture']['function']
|
||||
model = create_module(func_infor)(params=config)
|
||||
image, outputs = model(mode='export')
|
||||
fetches_var = sorted([outputs[name] for name in outputs])
|
||||
fetches_var_name = [name for name in fetches_var]
|
||||
fetches_var_name = sorted([name for name in outputs])
|
||||
fetches_var = [outputs[name] for name in fetches_var_name]
|
||||
feeded_var_names = [image.name]
|
||||
target_vars = fetches_var
|
||||
return feeded_var_names, target_vars, fetches_var_name
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user