PaddleOCR
PaddleOCR copied to clipboard
最新发布表格识别模型报错
问题描述 / 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
可能解决方案 / Possible solutions
表格模型不适配