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)
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'?
问题描述 / Problem Description
Version compatible issue
运行环境 / Runtime Environment
复现代码 / 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'?
可能解决方案 / Possible solutions
附件 / Appendix