Update test_hubserving.py
This commit is contained in:
parent
4da5595505
commit
a3170045b0
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue