Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
完整报错/Complete Error Message:Traceback (most recent call last):
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/flask/app.py", line 1488, in call
return self.wsgi_app(environ, start_response)
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/flask/app.py", line 1466, in wsgi_app
response = self.handle_exception(e)
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/flask/app.py", line 1463, in wsgi_app
response = self.full_dispatch_request()
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/flask/app.py", line 872, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/flask/app.py", line 870, in full_dispatch_request
rv = self.dispatch_request()
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/flask/app.py", line 855, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(view_args) # type: ignore[no-any-return]
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/flask_jwt_extended/view_decorators.py", line 170, in decorator
return current_app.ensure_sync(fn)(*args, *kwargs)
File "/home/linmj/PaddleOCR-release-2.6/api_bill_nlp.py", line 149, in bill_recognition
response = picture_recognition(file)
File "/home/linmj/PaddleOCR-release-2.6/api_bill_nlp.py", line 162, in picture_recognition
results_re = ser_re_engine({'img_path': file_path})
File "/home/linmj/PaddleOCR-release-2.6/tools/infer_kie_token_ser_re.py", line 151, in call
preds = self.model(re_input)
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/paddle/nn/layer/layers.py", line 1429, in call
return self.forward(inputs, kwargs)
File "/home/linmj/PaddleOCR-release-2.6/ppocr/modeling/architectures/base_model.py", line 86, in forward
x = self.backbone(x)
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/paddle/nn/layer/layers.py", line 1429, in call
return self.forward(*inputs, kwargs)
File "/home/linmj/PaddleOCR-release-2.6/ppocr/modeling/backbones/vqa_layoutlm.py", line 227, in forward
x = self.model(
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/paddle/nn/layer/layers.py", line 1429, in call
return self.forward(*inputs, *kwargs)
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/paddlenlp/transformers/layoutxlm/modeling.py", line 1329, in forward
loss, pred_relations = self.extractor(sequence_output, entities, relations)
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/paddle/nn/layer/layers.py", line 1429, in call
return self.forward(inputs, kwargs)
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/paddlenlp/transformers/layoutxlm/modeling.py", line 1223, in forward
relations, entities = self.build_relation(relations, entities)
File "/home/linmj/anaconda3/envs/bill_nlp/lib/python3.8/site-packages/paddlenlp/transformers/layoutxlm/modeling.py", line 1189, in build_relation
if negative_mask.sum() > 0: