Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created September 20, 2019 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dipanjanS/d83b6936f0eb8a55cda82a667a647d9e to your computer and use it in GitHub Desktop.
Save dipanjanS/d83b6936f0eb8a55cda82a667a647d9e to your computer and use it in GitHub Desktop.
%%time
responses = []
for i in tqdm(range(10000)):
API_URL = 'http://0.0.0.0:5000/apparel_classifier/api/v1/model2_predict'
# sending post request and saving response as response object
r = requests.post(url=API_URL, data=data)
responses.append(r.json())
len(responses)
print('Inference time per image: {} ms'.format((326 / 10000) * 1000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment