Replies: 1 comment
-
您好,感觉和opencv的版本有关,可以使用下面的命令 python -m pip install opencv-python==4.5.5.64 降低一下opencv版本试试。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🔎 Search before asking
🐛 Bug (问题描述)
PP-OCRv5_server_det训练,自己的图片和官方图片在加载时都出现报错:
ppocr ERROR: When parsing line images/train_img_125.jpg [{"transcription": "star", "points": [[1023, 212], [1250, 233], [1228, 277], [1001, 256]]}, {"transcription": "Mitsubishi", "points": [[1040, 171], [1164, 181], [1157, 211], [1032, 200]]}, {"transcription": "Electric", "points": [[1167, 183], [1261, 196], [1256, 219], [1161, 206]]}]
, error happened with msg: Traceback (most recent call last):
File "/project/PaddleOCR-release-3.0/ppocr/data/simple_dataset.py", line 135, in getitem
data["ext_data"] = self.get_ext_data()
File "/project/PaddleOCR-release-3.0/ppocr/data/simple_dataset.py", line 109, in get_ext_data
data = transform(data, load_data_ops)
File "/project/PaddleOCR-release-3.0/ppocr/data/imaug/init.py", line 73, in transform
data = op(data)
File "/project/PaddleOCR-release-3.0/ppocr/data/imaug/operators.py", line 46, in call
img = cv2.imdecode(img, 1)
cv2.error: OpenCV(4.10.0) 👎 error: (-5:Bad argument) in function 'imdecode'
🏃♂️ Environment (运行环境)
python 3.10
paddleocr 3.0.0
numpy 1.23.5
scipy 1.10.1
🌰 Minimal Reproducible Example (最小可复现问题的Demo)
python3 tools/train.py -c configs/det/PP-OCRv5/PP-OCRv5_server_det.yml
Beta Was this translation helpful? Give feedback.
All reactions