./tools/infer_kie_token_ser_re.py 预测报错AttributeError: 'bool' object has no attribute 'sum' #12566
Replies: 6 comments
-
Beta Was this translation helpful? Give feedback.
-
@UserWangZz 大佬,有时间帮忙看下吗? |
Beta Was this translation helpful? Give feedback.
-
报错位置在paddlenlp/transformers/layoutxlm/modeling.py的这个文件,目测报错问题可能是negative_mask变量应该为一个list or array,但是不知什么原因变成了bool类型,可以去paddlenlp仓库问问,或者debug查看更详细的原因 |
Beta Was this translation helpful? Give feedback.
-
Corrupt JPEG data: premature end of data segment |
Beta Was this translation helpful? Give feedback.
-
非常感谢,我再排查一下 |
Beta Was this translation helpful? Give feedback.
-
可以参考一下 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/PaddlePaddle/PaddleOCR/blob/main/doc/doc_ch/kie.md#31-%E6%8C%87%E6%A0%87%E8%AF%84%E4%BC%B0
执行章节3.2,预测脚本如下
报错信息如下
Beta Was this translation helpful? Give feedback.
All reactions