summaryrefslogtreecommitdiff
path: root/text_recognizer/data/iam_paragraphs.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-08-03 19:14:16 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-08-03 19:14:16 +0200
commit65d5f6c694e73792e40ed693a1381a792da8d277 (patch)
treec97067914c18b47108188c51294abd40bb1d6481 /text_recognizer/data/iam_paragraphs.py
parentbd4bd443f339e95007bfdabf3e060db720f4d4b9 (diff)
Fix bugs in converting text in mappings, add missing word_piece arg in datamodule
Diffstat (limited to 'text_recognizer/data/iam_paragraphs.py')
-rw-r--r--text_recognizer/data/iam_paragraphs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/text_recognizer/data/iam_paragraphs.py b/text_recognizer/data/iam_paragraphs.py
index 11f899f..3509b92 100644
--- a/text_recognizer/data/iam_paragraphs.py
+++ b/text_recognizer/data/iam_paragraphs.py
@@ -40,6 +40,8 @@ class IAMParagraphs(BaseDataModule):
word_pieces: bool = attr.ib(default=False)
augment: bool = attr.ib(default=True)
train_fraction: float = attr.ib(default=0.8)
+
+ # Placeholders
dims: Tuple[int, int, int] = attr.ib(
init=False, default=(1, IMAGE_HEIGHT, IMAGE_WIDTH)
)