未验证 提交 a3170045 编写于 作者: M MissPenguin 提交者: GitHub

Update test_hubserving.py

上级 4da55955
...@@ -87,7 +87,7 @@ def main(url, image_path): ...@@ -87,7 +87,7 @@ def main(url, image_path):
total_time += elapse total_time += elapse
print("Predict time of %s: %.3fs" % (image_file, elapse)) print("Predict time of %s: %.3fs" % (image_file, elapse))
res = r.json()["results"][0] res = r.json()["results"][0]
# print(res) print(res)
if is_visualize: if is_visualize:
draw_img = draw_server_result(image_file, res) draw_img = draw_server_result(image_file, res)
...@@ -111,4 +111,4 @@ if __name__ == '__main__': ...@@ -111,4 +111,4 @@ if __name__ == '__main__':
else: else:
server_url = sys.argv[1] server_url = sys.argv[1]
image_path = sys.argv[2] image_path = sys.argv[2]
main(server_url, image_path) main(server_url, image_path)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册