for preds, remove duplicate

This commit is contained in:
WenmuZhou 2021-01-20 18:33:42 +08:00
parent adafa3e67d
commit 1bf5367cdc
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class CTCLabelDecode(BaseRecLabelDecode):
preds_idx = preds.argmax(axis=2)
preds_prob = preds.max(axis=2)
text = self.decode(preds_idx, preds_prob)
text = self.decode(preds_idx, preds_prob, is_remove_duplicate=True)
if label is None:
return text
label = self.decode(label)