"src/vscode:/vscode.git/clone" did not exist on "346caaa1dbc3a971d747331a0ecd5d61fd7c40e9"
Commit 3d8b42dc authored by tink2123's avatar tink2123
Browse files

fix encode for srn

parent 4b845ca1
......@@ -261,7 +261,7 @@ class SRNLabelEncode(BaseRecLabelEncode):
if len(text) > self.max_text_len:
return None
data['length'] = np.array(len(text))
text = text + [char_num] * (self.max_text_len - len(text))
text = text + [char_num - 1] * (self.max_text_len - len(text))
data['label'] = np.array(text)
return data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment