Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

表格识别算法-SLANet-LCNetV2 推理报错,怎么解决? #13641

Open
3 of 4 tasks
nissansz opened this issue Aug 12, 2024 · 3 comments
Open
3 of 4 tasks

表格识别算法-SLANet-LCNetV2 推理报错,怎么解决? #13641

nissansz opened this issue Aug 12, 2024 · 3 comments
Labels
need more info Need more information to locate question

Comments

@nissansz
Copy link

Search before asking

  • I have searched the PaddleOCR Docs and found no similar bug report.

  • I have searched the PaddleOCR Issues and found no similar bug report.

  • I have searched the PaddleOCR Discussions and found no similar bug report.

Bug

L:
cd L:\paddle\PaddleOCR-2.8.1\ppstructure
python table/predict_structure.py --table_model_dir=L:\paddle\models\ch_ppstructure_openatom_SLANetv2_infer/ --table_char_dict_path=../ppocr/utils/dict/table_structure_dict.txt --image_dir=docs/table/table.jpg --output=../output/table_slanet_lcnetv2 --use_gpu=False --benchmark=True --enable_mkldnn=True --table_max_len=512

[libprotobuf ERROR C:\cache_release\third_party\cuda102\3ad0da47b86006a7bf40b5685bc39f90\protobuf\src\extern_protobuf\src\google\protobuf\message_lite.cc:121] 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 C:\cache_release\third_party\cuda102\3ad0da47b86006a7bf40b5685bc39f90\protobuf\src\extern_protobuf\src\google\protobuf\message_lite.cc:121] 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_structure.py", line 207, in
main(parse_args())
File "table/predict_structure.py", line 171, in main
table_structurer = TableStructurer(args)
File "table/predict_structure.py", line 97, in init
) = utility.create_predictor(args, "table", logger)
File "L:\paddle\PaddleOCR-2.8.1\tools\infer\utility.py", line 304, 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\fluid\framework\program_desc.cc:103)

Environment

win10

Minimal Reproducible Example

[libprotobuf ERROR C:\cache_release\third_party\cuda102\3ad0da47b86006a7bf40b5685bc39f90\protobuf\src\extern_protobuf\src\google\protobuf\message_lite.cc:121] 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 C:\cache_release\third_party\cuda102\3ad0da47b86006a7bf40b5685bc39f90\protobuf\src\extern_protobuf\src\google\protobuf\message_lite.cc:121] 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_structure.py", line 207, in
main(parse_args())
File "table/predict_structure.py", line 171, in main
table_structurer = TableStructurer(args)
File "table/predict_structure.py", line 97, in init
) = utility.create_predictor(args, "table", logger)
File "L:\paddle\PaddleOCR-2.8.1\tools\infer\utility.py", line 304, 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\fluid\framework\program_desc.cc:103)

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@nissansz nissansz added the bug Something isn't working label Aug 12, 2024
@SWHL SWHL added need more info Need more information to locate question and removed bug Something isn't working labels Aug 13, 2024
@Topdu
Copy link
Collaborator

Topdu commented Aug 20, 2024

试试其他模型有没有问题,如果都报错的话很可能是环境问题。

Copy link
Contributor

This issue is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the stale label Nov 19, 2024
@b4bbuilder
Copy link

I resolved this with rm -rf ~/.paddleocr. I think I aborted the code run initially causing the models to only partially install.

@github-actions github-actions bot removed the stale label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Need more information to locate question
Projects
None yet
Development

No branches or pull requests

4 participants