PaddleOCR Freezes on M2 MacOS Ventura version 13.5 #13062
Replies: 27 comments
-
I'm also facing same issue |
Beta Was this translation helpful? Give feedback.
-
I'm also facing same issue. My configuration:
I tried the same code as @pranay-009 and the execution freezes after this:
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
I have same issue. Does anyone have a solution for this ? |
Beta Was this translation helpful? Give feedback.
-
I have same issue, |
Beta Was this translation helpful? Give feedback.
-
I have same issue, |
Beta Was this translation helpful? Give feedback.
-
先用 rapidocr平替吧,用 onnx推理,模型还是用paddle的,在m2上可用 |
Beta Was this translation helpful? Give feedback.
-
I am facing the same issue on Macbook M3 Pro. Macos: Sonoma 14.1.2 |
Beta Was this translation helpful? Give feedback.
-
same issue running on M1 Pro |
Beta Was this translation helpful? Give feedback.
-
cc: @michaelowenliu @dyning @tink2123 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
I've got paddleocr 2.7.0.3 still freezing |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
still can't reproduce this freezing issue, can you share result of running this : |
Beta Was this translation helpful? Give feedback.
-
@jzhang533 I have same issue as @benx13 python -mplatform 'platform.platform()' |
Beta Was this translation helpful? Give feedback.
-
@jzhang533 experiencing the same thing.
python -mplatform 'platform.platform()' returns: |
Beta Was this translation helpful? Give feedback.
-
@jzhang533 it gives: |
Beta Was this translation helpful? Give feedback.
-
macOS-14.1.2-arm64-arm-64bit |
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
Gets stuck on 3.12 version as well |
Beta Was this translation helpful? Give feedback.
-
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: |
Beta Was this translation helpful? Give feedback.
-
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:
|
Beta Was this translation helpful? Give feedback.
-
同样在M2上卡住了 |
Beta Was this translation helpful? Give feedback.
-
not working
|
Beta Was this translation helpful? Give feedback.
-
如果问题依然存在,可以参考link If the problem still exists, you could try to solve it according this link |
Beta Was this translation helpful? Give feedback.
-
If you're encountering this issue on an Apple M-series chip (based on other comments, it seems other operating systems don’t have this problem), and it's happening specifically within a Celery worker, you can use the following command to run it:
The key is to include |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I installed
I had to force and stop the process
code sample
Beta Was this translation helpful? Give feedback.
All reactions