diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-06-05 23:39:11 +0200 |
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-06-05 23:39:11 +0200 |
| commit | 65df6a72b002c4b23d6f2eb545839e157f7f2aa0 (patch) | |
| tree | d78df1d7143dc9ff9e29afd4fd6bc7490bc79418 /text_recognizer/data/iam_synthetic_paragraphs.py | |
| parent | 8bc4b4cab00a2777a748c10fca9b3ee01e32277c (diff) | |
Remove attrs
Diffstat (limited to 'text_recognizer/data/iam_synthetic_paragraphs.py')
| -rw-r--r-- | text_recognizer/data/iam_synthetic_paragraphs.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/text_recognizer/data/iam_synthetic_paragraphs.py b/text_recognizer/data/iam_synthetic_paragraphs.py index 7143951..2e7762c 100644 --- a/text_recognizer/data/iam_synthetic_paragraphs.py +++ b/text_recognizer/data/iam_synthetic_paragraphs.py @@ -2,7 +2,6 @@ import random from typing import Any, List, Sequence, Tuple -from attrs import define from loguru import logger as log import numpy as np from PIL import Image @@ -34,10 +33,12 @@ PROCESSED_DATA_DIRNAME = ( ) -@define(auto_attribs=True, repr=False) class IAMSyntheticParagraphs(IAMParagraphs): """IAM Handwriting database of synthetic paragraphs.""" + def __init__(self) -> None: + super().__init__() + def prepare_data(self) -> None: """Prepare IAM lines to be used to generate paragraphs.""" if PROCESSED_DATA_DIRNAME.exists(): |