Error when training the KIE model vi_layoutxlm unexpected keyword argument 'num_classes' for LayoutXLMForTokenClassification.__init__() #12899
Replies: 9 comments
-
hi, bor 我也遇到了同样问题 |
Beta Was this translation helpful? Give feedback.
-
@andyjpaddle 应该和PaddleNLP的这次改动有关 PaddlePaddle/PaddleNLP@27936b6#diff-2742b8e7477bc6c550f7ac3a94fe8bbe2f3726eef2b56cdac75d187e9f9a44fc |
Beta Was this translation helpful? Give feedback.
-
我也遇到同样问题
|
Beta Was this translation helpful? Give feedback.
-
我也遇到同样问题
|
Beta Was this translation helpful? Give feedback.
-
把paddlenlp的版本退回到2.5.2可以暂时解决这个问题,让训练跑起来 |
Beta Was this translation helpful? Give feedback.
-
Have you fix this ? I am facing the sam issue |
Beta Was this translation helpful? Give feedback.
-
这个问题有动静么? 我也遇到了。 |
Beta Was this translation helpful? Give feedback.
-
PaddleOCR和PaddleNLP版本问题,目前发现可行的版本匹配方案: |
Beta Was this translation helpful? Give feedback.
-
我是不用ser_vi_layoutxlm_xfund_zh.yml,换成ser_vi_layoutxlm_xfund_zh_udml.yml文件就可以训练了。参考如下:[(https://github.com/PaddlePaddle/PaddleOCR/blob/main/docs/applications/%E5%8F%91%E7%A5%A8%E5%85%B3%E9%94%AE%E4%BF%A1%E6%81%AF%E6%8A%BD%E5%8F%96.md)] |
Beta Was this translation helpful? Give feedback.
-
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem:
I tryed to train a model using the config file present in the config like i did 2 month ago (the only thing that i changed is the folder for the dataset) but now give me this error, if i remove the keyword it give me a error where i miss the argument for LayoutXLMForSer.
请尽量不要包含图片在问题中/Please try to not include the image in the issue.
Beta Was this translation helpful? Give feedback.
All reactions