From 44420593e7057d31e6b26387f93a08dee7e8c5de Mon Sep 17 00:00:00 2001 From: tink2123 Date: Wed, 3 Feb 2021 08:26:46 +0000 Subject: [PATCH] fix typo --- ppocr/data/imaug/label_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppocr/data/imaug/label_ops.py b/ppocr/data/imaug/label_ops.py index 26ac4d81..55870a50 100644 --- a/ppocr/data/imaug/label_ops.py +++ b/ppocr/data/imaug/label_ops.py @@ -255,7 +255,7 @@ class SRNLabelEncode(BaseRecLabelEncode): def __call__(self, data): text = data['label'] text = self.encode(text) - char_num = len(self.character_str) + char_num = len(self.character) if text is None: return None if len(text) > self.max_text_len: -- GitLab