Skip to content
Snippets Groups Projects
Commit 7509550b authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Bastien Abadie
Browse files

Display time elapsed while downloading images

parent 58c85dd8
No related branches found
No related tags found
1 merge request!194Display time elapsed while downloading images
Pipeline #79416 passed
......@@ -102,7 +102,9 @@ def download_image(url):
# Preprocess the image and prepare it for classification
image = Image.open(BytesIO(resp.content))
logger.info(
"Downloaded image {} - size={}x{}".format(url, image.size[0], image.size[1])
"Downloaded image {} - size={}x{} in {}".format(
url, image.size[0], image.size[1], resp.elapsed
)
)
return image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment