Update test_hubserving.py

This commit is contained in:
MissPenguin 2020-07-16 11:41:25 +08:00 committed by GitHub
parent 4da5595505
commit a3170045b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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__':
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)