summaryrefslogtreecommitdiff
path: root/text_recognizer/models/transformer.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-09-27 23:21:52 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-09-27 23:21:52 +0200
commitf953b6d48a66ebff43c74bc0e092e657d5dbc198 (patch)
tree05e6ecff6829cfa8cfa2c20a10a090ee5e9c26a7 /text_recognizer/models/transformer.py
parent82a2464d95b63295239b4c57ae132e164de6b20a (diff)
Remove ignore indecies
Diffstat (limited to 'text_recognizer/models/transformer.py')
-rw-r--r--text_recognizer/models/transformer.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/text_recognizer/models/transformer.py b/text_recognizer/models/transformer.py
index 9500062..ff4d08d 100644
--- a/text_recognizer/models/transformer.py
+++ b/text_recognizer/models/transformer.py
@@ -31,7 +31,6 @@ class LitTransformer(LitBase):
tokenizer,
)
self.max_output_len = max_output_len
- self.ignore_indices = set([self.start_index, self.end_index, self.pad_index])
self.val_cer = CharErrorRate()
self.test_cer = CharErrorRate()
self.val_wer = WordErrorRate()