PaddlePaddle / PaddleOCR

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)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
44.23k stars 7.82k forks source link

C++部署代码运行错误 #2147

Closed syyxsxx closed 3 years ago

syyxsxx commented 3 years ago

系统:linux 16.04 gcc 4.8 PaddleOCR:release/2.0 版本 Paddle预测库:从官网下载的2.0rc cpu mkldnn预编译库(manylinux_cpu_avx_mkl_gcc482) 代码可以编译成功,但运行的时候报找不到rnn op terminate called after throwing an instance of 'paddle::platform::EnforceNotMet' what():


C++ Traceback (most recent call last):

0 paddle_infer::CreatePredictor(paddle::AnalysisConfig const&) 1 paddle_infer::Predictor::Predictor(paddle::AnalysisConfig const&) 2 std::unique_ptr<paddle::PaddlePredictor, std::default_delete > paddle::CreatePaddlePredictor<paddle::AnalysisConfig, (paddle::PaddleEngineKind)2>(paddle::AnalysisConfig const&) 3 paddle::AnalysisPredictor::Init(std::shared_ptr const&, std::shared_ptr const&) 4 paddle::AnalysisPredictor::PrepareExecutor() 5 paddle::framework::NaiveExecutor::Prepare(paddle::framework::Scope, paddle::framework::ProgramDesc const&, int, bool) 6 paddle::framework::NaiveExecutor::CreateOps(paddle::framework::ProgramDesc const&, int, bool) 7 paddle::framework::OpRegistry::CreateOp(paddle::framework::OpDesc const&) 8 paddle::framework::OpRegistry::CreateOp(std::string const&, std::map<std::string, std::vector<std::string, std::allocator >, std::less, std::allocator<std::pair<std::string const, std::vector<std::string, std::allocator > > > > const&, std::map<std::string, std::vector<std::string, std::allocator >, std::less, std::allocator<std::pair<std::string const, std::vector<std::string, std::allocator > > > > const&, paddle::framework::AttributeMap, bool) 9 paddle::platform::EnforceNotMet::EnforceNotMet(std::string const&, char const, int) 10 paddle::platform::GetCurrentTraceBackString()


Error Message Summary:

NotFoundError: Operator (rnn) is not registered. [Hint: op_info_ptr should not be null.] (at /paddle/paddle/fluid/framework/op_info.h:151)

LDOUBLEV commented 3 years ago

试一下2.0版本的预测库,不是2.0rc版本

syyxsxx commented 3 years ago

试一下2.0版本的预测库,不是2.0rc版本

2.0可以的,多谢