PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
Apache License 2.0
40.45k stars 7.48k forks source link

paddle version compatible #13280

Open MasterLivens opened 6 days ago

MasterLivens commented 6 days ago

问题描述 / Problem Description

Version compatible issue

运行环境 / Runtime Environment

完整报错 / Complete Error Message

File "/home/smartwork/PaddleOCR/paddleocr1.py", line 501, in init super().init(params) File "/home/smartwork/PaddleOCR/tools/infer/predict_system.py", line 46, in init self.text_detector = predict_det.TextDetector(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/smartwork/PaddleOCR/tools/infer/predict_det.py", line 136, in init self.predictor, self.input_tensor, self.output_tensors, self.config = utility.create_predictor( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/smartwork/PaddleOCR/tools/infer/utility.py", line 212, in create_predictor gpu_id = get_infer_gpuid() ^^^^^^^^^^^^^^^^^ File "/home/smartwork/PaddleOCR/tools/infer/utility.py", line 308, in get_infer_gpuid if not paddle.fluid.core.is_compiled_with_rocm(): ^^^^^^^^^^^^ AttributeError: module 'paddle' has no attribute 'fluid'. Did you mean: 'flip'?

可能解决方案 / Possible solutions

附件 / Appendix

GreatV commented 5 days ago

try upgrade your paddleocr version to 2.8.0.