wenwenyu / MASTER-pytorch

Code for the paper "MASTER: Multi-Aspect Non-local Network for Scene Text Recognition" (Pattern Recognition 2021)
https://arxiv.org/abs/1910.02562
MIT License
277 stars 53 forks source link

预测脚本有bug #10

Closed zezeze97 closed 3 years ago

zezeze97 commented 3 years ago

您好,我在使用您的代码进行预测时报错: (torch) zhangzr@AI12:~/MASTER-pytorch-main$ python test.py --checkpoint /home/zhangzr/model_output/master_saved/models/MASTER_Default/example_0712_205619/model_best.pth --img_folder /home/zhangzr/table2latex_data/Training_TSR/train_images --width 400 --height 400 --output_folder /home/zhangzr/model_output/test --gpu 1 --batch_size 4 Loading checkpoint: /home/zhangzr/model_output/master_saved/models/MASTER_Default/example_0712_205619/model_best.pth with saved best metric 0.0000 test data size: 43138 steps: 10785 0it [00:00, ?it/s] Traceback (most recent call last): File "test.py", line 128, in predict(args) File "test.py", line 73, in predict outputs, probs = decode_util.greedy_decode_with_probability(model, images, LabelTransformer.max_length, TypeError: greedy_decode_with_probability() got an unexpected keyword argument 'padding_symbol'

wenwenyu commented 3 years ago

Hi, 已修复。