From 2e7d569cede02667f1eabe4d32a2ed97f565c515 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 27 Oct 2021 22:11:18 +0200 Subject: Rearrange import order and formatting --- text_recognizer/data/emnist.py | 2 +- text_recognizer/data/emnist_lines.py | 2 +- text_recognizer/data/iam_extended_paragraphs.py | 1 - text_recognizer/data/iam_lines.py | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) (limited to 'text_recognizer') diff --git a/text_recognizer/data/emnist.py b/text_recognizer/data/emnist.py index e2bc5b9..dc8d31a 100644 --- a/text_recognizer/data/emnist.py +++ b/text_recognizer/data/emnist.py @@ -17,8 +17,8 @@ from text_recognizer.data.base_data_module import ( load_and_print_info, ) from text_recognizer.data.base_dataset import BaseDataset, split_dataset -from text_recognizer.data.utils.download_utils import download_dataset from text_recognizer.data.transforms.load_transform import load_transform_from_file +from text_recognizer.data.utils.download_utils import download_dataset SEED = 4711 diff --git a/text_recognizer/data/emnist_lines.py b/text_recognizer/data/emnist_lines.py index 1a64931..c267286 100644 --- a/text_recognizer/data/emnist_lines.py +++ b/text_recognizer/data/emnist_lines.py @@ -17,8 +17,8 @@ from text_recognizer.data.base_data_module import ( ) from text_recognizer.data.base_dataset import BaseDataset, convert_strings_to_labels from text_recognizer.data.emnist import EMNIST -from text_recognizer.data.utils.sentence_generator import SentenceGenerator from text_recognizer.data.transforms.load_transform import load_transform_from_file +from text_recognizer.data.utils.sentence_generator import SentenceGenerator DATA_DIRNAME = BaseDataModule.data_dirname() / "processed" / "emnist_lines" diff --git a/text_recognizer/data/iam_extended_paragraphs.py b/text_recognizer/data/iam_extended_paragraphs.py index 87b8ef1..f43e3f7 100644 --- a/text_recognizer/data/iam_extended_paragraphs.py +++ b/text_recognizer/data/iam_extended_paragraphs.py @@ -1,6 +1,5 @@ """IAM original and sythetic dataset class.""" import attr - from torch.utils.data import ConcatDataset from text_recognizer.data.base_data_module import BaseDataModule, load_and_print_info diff --git a/text_recognizer/data/iam_lines.py b/text_recognizer/data/iam_lines.py index 672a6f0..aa5473a 100644 --- a/text_recognizer/data/iam_lines.py +++ b/text_recognizer/data/iam_lines.py @@ -20,9 +20,9 @@ from text_recognizer.data.base_dataset import ( split_dataset, ) from text_recognizer.data.iam import IAM -from text_recognizer.data.utils import image_utils from text_recognizer.data.mappings.emnist import EmnistMapping from text_recognizer.data.transforms.load_transform import load_transform_from_file +from text_recognizer.data.utils import image_utils ImageFile.LOAD_TRUNCATED_IMAGES = True -- cgit v1.2.3-70-g09d2