Created
September 20, 2019 11:43
-
-
Save dipanjanS/d83b6936f0eb8a55cda82a667a647d9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%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