summaryrefslogtreecommitdiff
path: root/text_recognizer/metadata/iam_lines.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-09-27 01:44:49 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-09-27 01:44:49 +0200
commit9b8e14d89f0ef2508ed11f994f73af624155fe1d (patch)
tree10d9c138f4449646c8b5c0f95003ba86b831d04d /text_recognizer/metadata/iam_lines.py
parent63376b1c2da81c23ad5239f908b640cd42a514c7 (diff)
Update data modules
Diffstat (limited to 'text_recognizer/metadata/iam_lines.py')
-rw-r--r--text_recognizer/metadata/iam_lines.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/text_recognizer/metadata/iam_lines.py b/text_recognizer/metadata/iam_lines.py
index 73b2a28..a94041c 100644
--- a/text_recognizer/metadata/iam_lines.py
+++ b/text_recognizer/metadata/iam_lines.py
@@ -9,7 +9,12 @@ CHAR_WIDTH = emnist.INPUT_SHAPE[0] // IMAGE_SCALE_FACTOR # rough estimate
IMAGE_HEIGHT = 112 // IMAGE_SCALE_FACTOR
IMAGE_WIDTH = 3072 // IMAGE_SCALE_FACTOR # rounding up IAMLines empirical maximum width
+SEED = 4711
DIMS = (1, IMAGE_HEIGHT, IMAGE_WIDTH)
OUTPUT_DIMS = (89, 1)
+IMAGE_HEIGHT = 56
+IMAGE_WIDTH = 1024
+MAX_LABEL_LENGTH = 89
+MAX_WORD_PIECE_LENGTH = 72
MAPPING = emnist.MAPPING