-
Notifications
You must be signed in to change notification settings - Fork 7.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
PaddleOCR Freezes on M2 MacOS Ventura version 13.5 #11079
Comments
I'm also facing same issue |
I'm also facing same issue. My configuration:
I tried the same code as @pranay-009 and the execution freezes after this:
|
I have same issue. Does anyone have a solution for this ? Apple M2 Pro, 16 GB, Sonoma 14.0 numpy==1.26.2
opencv-contrib-python==4.8.1.78
opencv-python==4.8.1.78
paddleocr==2.6.0.1
paddlepaddle==2.5.2
pandas==2.1.4
Pillow==10.1.0
protobuf==4.23.4
PyMuPDF==1.21.1 |
I have same issue. Does anyone have a solution for this ? |
I have same issue, |
I have same issue, |
先用 rapidocr平替吧,用 onnx推理,模型还是用paddle的,在m2上可用 |
I am facing the same issue on Macbook M3 Pro. Macos: Sonoma 14.1.2 |
same issue running on M1 Pro |
cc: @michaelowenliu @dyning @tink2123 |
I can run the following script on my Apple M1, macOS Monterey, python 3.9.13 without freezing issue. from paddleocr import PaddleOCR
ocr = PaddleOCR(use_angle_cls=True, lang='en')
img_path = './1.jpeg'
result = ocr.ocr(img_path, cls=True) I have the following packages installed: paddleocr 2.7.0.3 I'm unclear about the differences between the various M-series chips, but I'm hoping they'll be compatible. |
I've got paddleocr 2.7.0.3 still freezing |
I'm using Python 3.9.13 and Sonoma 14.0, with all other package versions matching yours. I can run the program successfully. It's possible there may be an issue with your image. Could you share an example image? |
still can't reproduce this freezing issue, can you share result of running this : |
@jzhang533 I have same issue as @benx13 python -mplatform 'platform.platform()' |
@jzhang533 experiencing the same thing.
python -mplatform 'platform.platform()' returns: |
@jzhang533 it gives: |
@jzhang533 surprisingly, on a different Python version, it worked for me technically on the default version so the way I had it set up is I installed it on python 3.9 which is not my default Python my default is 3.12. When I installed it on python 3.12 it surprisingly works no issues. |
Gets stuck on 3.12 version as well |
Ofc it does, I have debugged it fully and the conclusion: problem lies on paddlepaddle inference not on paddle ocr check this thread for more info: |
For all who are still facing this issue, I have managed to run to successfully on Mac M3 Pro using Docker. Here's the Dockerfile you can use to build and run PaddleOCR. Hope this helps.
To build and run this Docker image:
|
同样在M2上卡住了 |
not working
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I installed
I had to force and stop the process
code sample
The text was updated successfully, but these errors were encountered: