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)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
42.79k stars 7.69k forks source link

ImportError: cannot import name 'check_and_read_gif' from 'ppocr.utils.utility' #8735

Closed wang-tf closed 1 year ago

wang-tf commented 1 year ago

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

jingsongliujing commented 1 year ago

paddleocr 用2.6,paddle框架建议安装2.3版本的cpu版本:安装参考:https://www.paddlepaddle.org.cn/install/old?docurl=/documentation/docs/zh/install/pip/linux-pip.html

wang-tf commented 1 year ago

paddleocr 用2.6,paddle框架建议安装2.3版本的cpu版本:安装参考:https://www.paddlepaddle.org.cn/install/old?docurl=/documentation/docs/zh/install/pip/linux-pip.html

OK, it works.

Mrfuhang commented 1 year ago

解决了嘛 老铁 我这边也是用的aistudio 中带的那个LabelImg 虚拟环境,跟您报一样的错

momei123 commented 1 year ago

Pytorch TensorFlow等哪有这么多屁问题?国产的东西真是垃圾坑多!

xuxiansheng2018 commented 1 year ago

xxx@ubuntu:~/project/PaddleOCR$ CUDA_VISIBLE_DEVICES=1 python3 /home/xxx/project/PaddleOCR/tools/infer/predict_system.py --image_dir="./data/ocr/det_data_0827/test_det/crop_img/" --det_model_dir="./inference/ch_PP-OCRv3_det_student_inference/" --rec_model_dir="./inference/rec_ppocr_v3_distillation_0918/Student/" --cls_model_dir="./inference/ch_ppocr_mobile_v2.0_cls_infer/"--use_angle_cls=True --use_gpu=True --draw_img_save_dir="./inference_results/inference_results_001_0918_test/" Traceback (most recent call last): File "/home/xxx/project/PaddleOCR/tools/infer/predict_system.py", line 34, in import tools.infer.predict_cls as predict_cls File "/home/xxx/project/PaddleOCR/tools/infer/predict_cls.py", line 33, in from ppocr.utils.utility import get_image_file_list, check_and_read_gif ImportError: cannot import name 'check_and_read_gif' from 'ppocr.utils.utility' (/home/xxx/project/PaddleOCR/ppocr/utils/utility.py) 同样的错误 应该如何解决