From 8eec5f3d4ce41c2ba30f0f1ab3f506fc3c0dd263 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 18 Sep 2022 18:12:54 +0200 Subject: Formats --- text_recognizer/data/utils/image_utils.py | 2 +- text_recognizer/data/utils/sentence_generator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'text_recognizer/data/utils') diff --git a/text_recognizer/data/utils/image_utils.py b/text_recognizer/data/utils/image_utils.py index d374fc3..3f4901c 100644 --- a/text_recognizer/data/utils/image_utils.py +++ b/text_recognizer/data/utils/image_utils.py @@ -4,8 +4,8 @@ from io import BytesIO from pathlib import Path from typing import Any, Union -from PIL import Image import smart_open +from PIL import Image def read_image_pil(image_uri: Union[Path, str], grayscale: bool = False) -> Image: diff --git a/text_recognizer/data/utils/sentence_generator.py b/text_recognizer/data/utils/sentence_generator.py index 8567e6d..c98d0da 100644 --- a/text_recognizer/data/utils/sentence_generator.py +++ b/text_recognizer/data/utils/sentence_generator.py @@ -5,8 +5,8 @@ import string from typing import Optional import nltk -from nltk.corpus.reader.util import ConcatenatedCorpusView import numpy as np +from nltk.corpus.reader.util import ConcatenatedCorpusView from text_recognizer.data.base_data_module import BaseDataModule -- cgit v1.2.3-70-g09d2