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

paddlex和paddleocr #3533

Open
cloudfool opened this issue Mar 6, 2025 · 3 comments
Open

paddlex和paddleocr #3533

cloudfool opened this issue Mar 6, 2025 · 3 comments
Assignees

Comments

@cloudfool
Copy link

我把paddlex开源的PP-OCRv4_mobile_rec模型移动到paddleOCR的项目里运行报错,显示:

C++ Traceback (most recent call last):

0 paddle::AnalysisPredictor::ZeroCopyRun()
1 paddle::framework::NaiveExecutor::Run()
2 paddle::framework::OperatorBase::Run(paddle::framework::Scope const&, phi::Place const&)
3 paddle::framework::OperatorWithKernel::RunImpl(paddle::framework::Scope const&, phi::Place const&) const
4 paddle::framework::OperatorWithKernel::RunImpl(paddle::framework::Scope const&, phi::Place const&, paddle::framework::RuntimeContext*) const
5 std::_Function_handler<void (paddle::framework::InferShapeContext*), paddle::framework::details::OpInfoFiller<SqueezeInferShapeFunctor, (paddle::framework::details::OpInfoFillType)4>::operator()(char const*, paddle::framework::OpInfo*) const::{lambda(paddle::framework::InferShapeContext*)#1}>::_M_invoke(std::_Any_data const&, paddle::framework::InferShapeContext*&&)
6 SqueezeInferShapeFunctor::operator()(paddle::framework::InferShapeContext*) const
7 phi::SqueezeInferMeta(phi::MetaTensor const&, std::vector<int, std::allocator > const&, phi::MetaTensor*, phi::MetaTensor*)


Error Message Summary:

FatalError: Segmentation fault is detected by the operating system.
[TimeInfo: *** Aborted at 1741231918 (unix time) try "date -d @1741231918" if you are using GNU date ***]
[SignalInfo: *** SIGSEGV (@0x0) received by PID 3105 (TID 0x7f177d5db740) from PID 0 ***]

Segmentation fault (core dumped)

请问这里能直接挪到paddleOCR里运行吗?不能的话 需要修改哪些东西

@Bobholamovic
Copy link
Member

请问你安装的paddlepaddle和paddleocr版本是?

@cloudfool
Copy link
Author

请问你安装的paddlepaddle和paddleocr版本是?

paddleocr 2.5.0.3
paddlepaddle-gpu 2.3.0.post112

@Bobholamovic
Copy link
Member

可能是paddlepaddle的版本太低了,建议升级到最新的3.0rc试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants