Skip to content
Snippets Groups Projects
Commit 9556bdbc authored by Martin's avatar Martin
Browse files

fix formatting

parent a21bc941
No related branches found
No related tags found
No related merge requests found
......@@ -10,11 +10,10 @@ from io import BytesIO
from pathlib import Path
from typing import Tuple
import tqdm
import cv2
import numpy as np
import requests
import tqdm
from PIL import Image
from apistar.exceptions import ErrorResponse
from arkindex import ArkindexClient, options_from_env
......@@ -47,8 +46,8 @@ def download_image(url):
# Preprocess the image and prepare it for classification
image = Image.open(BytesIO(resp.content))
logger.debug('Downloaded image {} - size={}x{}'.format(url,
image.size[0],
image.size[1]))
image.size[0],
image.size[1]))
return image
......@@ -117,7 +116,7 @@ class KaldiDataGenerator:
full_image_url = res['zone']['image']['s3_url']
if full_image_url is None:
full_image_url = res['zone']['image']['url'] + '/full/full/0/default.jpg'
full_image_url = res['zone']['image']['url'] + '/full/full/0/default.jpg'
img = self.get_image(full_image_url, page_id=page_id)
......
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