Skip to content

Commit

Permalink
Modify unnecessary syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
SoongE committed Jul 24, 2020
1 parent 7f59fb0 commit 485344a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def demo(opt):
preds_size = torch.IntTensor([preds.size(1)] * batch_size)
_, preds_index = preds.max(2)
# preds_index = preds_index.view(-1)
preds_str = converter.decode(preds_index.data, preds_size.data)
preds_str = converter.decode(preds_index, preds_size)

else:
preds = model(image, text_for_pred, is_train=False)
Expand Down

0 comments on commit 485344a

Please sign in to comment.