提交 47a6f1a6 编写于 作者: littletomatodonkey's avatar littletomatodonkey

fix infer

上级 73e34e77
...@@ -105,6 +105,7 @@ def main(): ...@@ -105,6 +105,7 @@ def main():
exe, program, feed_names, fetch_names = create_predictor(args) exe, program, feed_names, fetch_names = create_predictor(args)
data = preprocess(args.image_file, operators) data = preprocess(args.image_file, operators)
data = np.expand_dims(data, axis=0)
outputs = exe.run(program, outputs = exe.run(program,
feed={feed_names[0]: data}, feed={feed_names[0]: data},
fetch_list=fetch_names, fetch_list=fetch_names,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册