fix attn encode

This commit is contained in:
tink2123 2021-02-08 03:30:27 +00:00
parent 895d44bc39
commit 4b845ca159
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ class AttnLabelEncode(BaseRecLabelEncode):
return None
data['length'] = np.array(len(text))
text = [0] + text + [len(self.character) - 1] + [0] * (self.max_text_len
- len(text) - 1)
- len(text) - 2)
data['label'] = np.array(text)
return data