发票OCR训练出现问题 #12613
Unanswered
Double97828
asked this question in
Q&A
发票OCR训练出现问题
#12613
Replies: 2 comments
-
i have solved this problem by : pip install paddlenlp==2.5.2 or check your other packages version |
Beta Was this translation helpful? Give feedback.
0 replies
-
我也这样的 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
我们提供了AceIssueSolver来帮助你解答问题,你是否想要它来解答(请填写yes/no)?/We provide AceIssueSolver to solve issues, do you want it? (Please write yes/no):yes
请尽量不要包含图片在问题中/Please try to not include the image in the issue.
我根据https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.7/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
的提示去做发票识别,但是在做训练的时候报错
2023-11-08 21:42:51,394] [ INFO] - All the weights of LayoutXLMModel were initialized from the model checkpoint at vi-layoutxlm-base-uncased.
If your task is similar to the task the model of the checkpoint was trained on, you can already use LayoutXLMModel for predictions without further training.
Traceback (most recent call last):
File "tools/train.py", line 227, in
main(config, device, logger, vdl_writer)
File "tools/train.py", line 135, in main
model = build_model(config['Architecture'])
File "/ppocr/modeling/architectures/init.py", line 34, in build_model
arch = getattr(mod, name)(config)
File "/ppocr/modeling/architectures/distillation_model.py", line 47, in init
model = BaseModel(model_config)
File "/ppocr/modeling/architectures/base_model.py", line 55, in init
self.backbone = build_backbone(config["Backbone"], model_type)
File "/ppocr/modeling/backbones/init.py", line 80, in build_backbone
module_class = eval(module_name)(**config)
File "ppocr/modeling/backbones/vqa_layoutlm.py", line 149, in init
super(LayoutXLMForSer, self).init(
File "/ppocr/modeling/backbones/vqa_layoutlm.py", line 65, in init
self.model = model_class(
File "/root/miniconda3/site-packages/paddlenlp/transformers/utils.py", line 253, in impl
init_func(self, *args, **kwargs)
TypeError: init() got an unexpected keyword argument 'num_classes'
Beta Was this translation helpful? Give feedback.
All reactions