summaryrefslogtreecommitdiff
path: root/text_recognizer
diff options
context:
space:
mode:
Diffstat (limited to 'text_recognizer')
-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()