Open kssion opened 2 months ago
@meiyang-intel Please help take a look. Thanks!
It may be the issue in auto plugin. @kssion , can you have a try to use the CPU device as below to see whether it can output correct result?
det_model = TextDetection('ch_PP-OCRv4_det_infer/inference.pdmodel', 'CPU')
The result of using CPU is the same.
@kssion , I found openvino master branch didn't have this issue. Can you have a try to install https://pypi.org/project/openvino-nightly/ and check whether it still exists.
@meiyang-intel , not ok, Is it related to my hardware?
Device info:
Apple M1
macOS Sonoma 14.2.1 (23C71)
My cmd:
# Python 3.9.18
python3 -m venv openvino_env
source openvino_env/bin/activate
python -m pip install --upgrade pip
pip install openvino-nightly opencv-python
# pip install openvino==2024.0.0
cd ocr-test/
python ocr_test.py
Out-1:
# openvino (2024.0.0-14509-34caeefd078-releases/2024/0)
[[[[2.90401573e-13 1.02048896e-13 1.59580923e-14 ... 1.92933167e-14
2.84697633e-14 6.55838231e-13]
[5.95289970e-15 2.10930982e-15 6.58704277e-16 ... 7.15044144e-16
8.53998893e-16 2.04200196e-14]
[9.44296860e-14 7.98974924e-15 2.85937859e-14 ... 9.61401199e-15
4.56825658e-13 4.76283943e-12]
...
[2.87040560e-14 7.17875924e-15 1.30948033e-15 ... 9.74731952e-16
2.07271910e-14 1.13725273e-13]
[1.18844214e-12 1.30420997e-13 2.31416611e-13 ... 9.45223107e-14
2.93433962e-12 1.02352900e-11]
[2.67273486e-12 5.86507514e-13 2.34141320e-13 ... 4.37234003e-14
4.81435855e-13 4.03402832e-12]]]]
Out-2:
# openvino-nightly (2024.5.0-16678-090da7b5376)
[[[[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
...
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]]]]
OpenVINO Version
2024.1.0
Operating System
macOS Systems for Apple Silicon
Device used for inference
CPU
Framework
None
Model used
https://paddleocr.bj.bcebos.com/PP-OCRv4/chinese/ch_PP-OCRv4_det_infer.tar
Issue description
The prediction results using PaddleOCR text detection model (ch-PP-OCRv4_det) began to show errors in version 2024.1.0, with almost no text content detected. Previous versions were normal, with the same code and input image, only different version numbers.
Predicted results in version 2024.0.0
Predicted results in version 2024.1.0
It can be seen that in version 2024.1.0, most of the results are 0.
Step-by-step reproduction
My code
Input image
Relevant log output
Issue submission checklist