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

更新到1.0.1之后,还是出现RuntimeError: could not execute a primitive #1581

Closed
Rezen1997 opened this issue Jan 20, 2025 · 9 comments

Comments

@Rezen1997
Copy link

paddle的多线程有问题,你重新拉下最新的代码,magic-pdf也更到最新,新版gradio的并发上限为1就不会出这个问题了

Originally posted by @myhloli in #1563

您好,我按照您说的更新了magic-pdf的版本到1.0.1(magic-pdf --version命令显示的结果是1.0.1),并且在master分支重新拉取了gradio_app的代码,但是当我多次上传文件进行解析后,还是会出现RuntimeError: could not execute a primitive,您说这个是paddle的问题,那我需要更新paddle的版本吗?我目前的版本好像是paddle 3.0.0b
Image

@myhloli
Copy link
Collaborator

myhloli commented Jan 20, 2025

你把完整的报错信息发一下看看?

@Rezen1997
Copy link
Author

报错信息比较多,分了两张图片
Image

Image

@myhloli
Copy link
Collaborator

myhloli commented Jan 20, 2025

pip list 看下paddleocr和paddlepaddle的版本

@Rezen1997
Copy link
Author

Image

@myhloli
Copy link
Collaborator

myhloli commented Jan 20, 2025

版本都没问题,命令行执行没有这个报错?

@Rezen1997
Copy link
Author

我刚才使用4个10页左右的PDF,采用命令行的方式:magic-pdf -p input -o output -m auto 的方式进行测试,没有报错。好像还是paddle的问题,我找到的几个回答都是几年前的,最新的回答如下,fastapi好像可有效缓解,但是gradio是否有解决的办法呢?
PaddlePaddle/PaddleOCR#12623

@myhloli
Copy link
Collaborator

myhloli commented Jan 20, 2025

我们在gradio上没有遇到该问题,可能因为我们都是在使用paddlepaddle-gpu的,你也可以尝试使用gpu版本的paddle

@Rezen1997
Copy link
Author

我这边不太支持gpu,我准备试试您们新出的华为的npu镜像,这个应该也是配了gradio了吧?

@myhloli
Copy link
Collaborator

myhloli commented Jan 20, 2025

镜像只包含命令行程序,可以自己部署gradio

@myhloli myhloli closed this as completed Jan 22, 2025
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