PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

最新发布表格识别模型报错

Open dragronstranding opened this issue 7 months ago • 4 comments

问题描述 / Problem Description

下载最新发布的表格识别模型进行推理,然后按照文档来运行会报错

运行环境 / Runtime Environment

  • OS:
  • Paddle: 2.3.2.post112
  • PaddleOCR: 2.7.0.2

复现代码 / Reproduction Code

python table/predict_table.py --det_model_dir=../weights/ch_PP-OCRv3_det_infer --rec_model_dir=../weights/ch_PP-OCRv3_rec_infer --table_model_dir=../weights/ch_ppstructure_openatom_SLANetv2_infer --rec_char_dict_path=../ppocr/utils/ppocr_keys_v1.txt --table_char_dict_path=../ppocr/utils/dict/table_structure_dict_ch.txt --image_dir=docs/table/page_1.png --output=../output/table

完整报错 / Complete Error Message

[libprotobuf ERROR /paddle/build/third_party/protobuf/src/extern_protobuf/src/google/protobuf/message_lite.cc:119] Can't parse message of type "paddle.framework.proto.ProgramDesc" because it is missing required fields: blocks[1].ops[40].attrs[13].type, blocks[1].ops[42].attrs[13].type, blocks[1].ops[44].attrs[13].type [libprotobuf ERROR /paddle/build/third_party/protobuf/src/extern_protobuf/src/google/protobuf/message_lite.cc:119] Can't parse message of type "paddle.framework.proto.ProgramDesc" because it is missing required fields: blocks[1].ops[40].attrs[13].type, blocks[1].ops[42].attrs[13].type, blocks[1].ops[44].attrs[13].type Traceback (most recent call last): File "table/predict_table.py", line 230, in main(args) File "table/predict_table.py", line 153, in main table_sys = TableSystem(args) File "table/predict_table.py", line 73, in init self.table_structurer = predict_strture.TableStructurer(args) File "/80013922/PaddleOCR-release-2.7/ppstructure/table/predict_structure.py", line 91, in init utility.create_predictor(args, 'table', logger) File "/80013922/PaddleOCR-release-2.7/tools/infer/utility.py", line 280, in create_predictor predictor = inference.create_predictor(config) ValueError: (InvalidArgument) Failed to parse program_desc from binary string. [Hint: Expected desc_.ParseFromString(binary_str) == true, but received desc_.ParseFromString(binary_str):0 != true:1.] (at /paddle/paddle/fluid/framework/program_desc.cc:103)

可能解决方案 / Possible solutions

表格模型不适配

附件 / Appendix

dragronstranding avatar Jul 12 '24 06:07 dragronstranding