From 88ef493bf73ca267ca19725d2be966ad74745dac Mon Sep 17 00:00:00 2001 From: xiaoting <31891223+tink2123@users.noreply.github.com> Date: Wed, 3 Feb 2021 16:58:52 +0800 Subject: [PATCH] Revert "fix typo for encode" --- 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 55870a50..26ac4d81 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) + char_num = len(self.character_str) if text is None: return None if len(text) > self.max_text_len: -- GitLab