rm visionlan invalid params

pull/8133/head
andyjpaddle 2022-10-27 07:51:45 +00:00
parent b1e37fa42c
commit 84ec4503ef
1 changed files with 2 additions and 3 deletions
ppocr/data/imaug

View File

@ -1396,10 +1396,9 @@ class VLLabelEncode(BaseRecLabelEncode):
max_text_length,
character_dict_path=None,
use_space_char=False,
lower=True,
**kwargs):
super(VLLabelEncode, self).__init__(
max_text_length, character_dict_path, use_space_char, lower)
super(VLLabelEncode, self).__init__(max_text_length,
character_dict_path, use_space_char)
self.dict = {}
for i, char in enumerate(self.character):
self.dict[char] = i