From f953b6d48a66ebff43c74bc0e092e657d5dbc198 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 27 Sep 2022 23:21:52 +0200 Subject: Remove ignore indecies --- text_recognizer/models/transformer.py | 1 - 1 file changed, 1 deletion(-) (limited to 'text_recognizer') 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() -- cgit v1.2.3-70-g09d2