PaddleOCR
PaddleOCR copied to clipboard
paddle version compatible
问题描述 / Problem Description
Version compatible issue
运行环境 / Runtime Environment
- OS: ubuntu 24.04
- Paddle: paddlepaddle-gpu==2.6.1.post120
- PaddleOCR: 2.8.3
- CUDA: 12.2 RTX4090
复现代码 / Reproduction Code
完整报错 / 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'?