You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
机器环境如下:
paddle version:v2.5.1
paddleocr version :release/2.6
OS: macOS 13.2.1
Clang version: 13.0.1
CMake version: version 3.26.3
Python version: 3.11.4
我们提供了AceIssueSolver来帮助你解答问题,你是否想要它来解答(yes)
C++
用的是PaddleOCR/deploy/cpp_infer 目录下构建的
(ocr2udp) ➜ build git:(release/2.7) ✗ time ./ppocr --det_model_dir=/opt/paddle_git/ch_PP-OCRv4_det_infer --rec_model_dir=/opt/paddle_git/ch_PP-OCRv4_rec_infer --image_dir=/opt/paddle_git/images/ --rec_char_dict_path=/opt/paddle_git/paddleOCR/ppocr/utils/ppocr_keys_v1.txt
...
...
./ppocr --det_model_dir=/opt/paddle_git/ch_PP-OCRv4_det_infer 205.02s user 29.69s system 767% cpu 30.601 total
python
python 用的是pip装的版本
(ocr2udp) ➜ build git:(release/2.7) ✗ time paddleocr --det_model_dir=/opt/paddle_git/ch_PP-OCRv4_det_infer --rec_model_dir=/opt/paddle_git/ch_PP-OCRv4_rec_infer --image_dir=/opt/paddle_git/images/ --rec_char_dict_path=/opt/paddle_git/paddleOCR/ppocr/utils/ppocr_keys_v1.txt
...
...
paddleocr --det_model_dir=/opt/paddle_git/ch_PP-OCRv4_det_infer 29.68s user 2.25s system 114% cpu 27.816 total
This discussion was converted from issue #10880 on May 27, 2024 04:57.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
机器环境如下:
paddle version:v2.5.1
paddleocr version :release/2.6
OS: macOS 13.2.1
Clang version: 13.0.1
CMake version: version 3.26.3
Python version: 3.11.4
我们提供了AceIssueSolver来帮助你解答问题,你是否想要它来解答(yes)
C++
用的是PaddleOCR/deploy/cpp_infer 目录下构建的
(ocr2udp) ➜ build git:(release/2.7) ✗ time ./ppocr --det_model_dir=/opt/paddle_git/ch_PP-OCRv4_det_infer --rec_model_dir=/opt/paddle_git/ch_PP-OCRv4_rec_infer --image_dir=/opt/paddle_git/images/ --rec_char_dict_path=/opt/paddle_git/paddleOCR/ppocr/utils/ppocr_keys_v1.txt ... ... ./ppocr --det_model_dir=/opt/paddle_git/ch_PP-OCRv4_det_infer 205.02s user 29.69s system 767% cpu 30.601 total
python
python 用的是pip装的版本
(ocr2udp) ➜ build git:(release/2.7) ✗ time paddleocr --det_model_dir=/opt/paddle_git/ch_PP-OCRv4_det_infer --rec_model_dir=/opt/paddle_git/ch_PP-OCRv4_rec_infer --image_dir=/opt/paddle_git/images/ --rec_char_dict_path=/opt/paddle_git/paddleOCR/ppocr/utils/ppocr_keys_v1.txt ... ... paddleocr --det_model_dir=/opt/paddle_git/ch_PP-OCRv4_det_infer 29.68s user 2.25s system 114% cpu 27.816 total
检查用一组图片 python 回占满一个核 而c++ 回占满8个核心 ,感觉是使用了
多进程 但是看代码里没看到相关逻辑 ,初步猜测多进程的上下文切换 导致cpu占用率升高 和效率不高
有什么设置可以调整吗
Beta Was this translation helpful? Give feedback.
All reactions