首页 PaddleOCR 帖子详情
PaddleOCR测试时报错
收藏
快速回复
PaddleOCR 问答OCR 1146 4
PaddleOCR测试时报错
收藏
快速回复
PaddleOCR 问答OCR 1146 4

PS F:\Code_files> & "D:/Program software/Python37/python.exe" f:/Code_files/Vs_Python/Paddle_OCR/ocr_code.py
Namespace(cls_batch_num=30, cls_image_shape='3, 48, 192', cls_model_dir='C:\\Users\\hp/.paddleocr/2.0/cls', cls_thresh=0.9, det=True, det_algorithm='DB', det_db_box_thresh=0.5, det_db_thresh=0.3, det_db_unclip_ratio=2.0, det_east_cover_thresh=0.1, det_east_nms_thresh=0.2, det_east_score_thresh=0.8, det_limit_side_len=960,
det_limit_type='max', det_model_dir='C:\\Users\\hp/.paddleocr/2.0/det', drop_score=0.5, enable_mkldnn=False, gpu_mem=8000, image_dir='', ir_optim=True, label_list=['0', '180'], lang='ch', max_text_length=25, rec=True, rec_algorithm='CRNN', rec_batch_num=30, rec_char_dict_path='./ppocr/utils/ppocr_keys_v1.txt', rec_char_type='ch', rec_image_shape='3, 32, 320', rec_model_dir='C:\\Users\\hp/.paddleocr/2.0/rec/ch', use_angle_cls=False, use_gpu=True, use_pdserving=False, use_space_char=True, use_tensorrt=False, use_zero_copy_run=False)
E0209 14:30:15.733044 8248 analysis_config.cc:72] Please compile with gpu to EnableGpu()
t__
self.text_recognizer = predict_rec.TextRecognizer(args)
File "D:\Program software\Python37\lib\site-packages\paddleocr\tools\infer\predict_rec.py", line 51, in __init__
utility.create_predictor(args, 'rec', logger)
File "D:\Program software\Python37\lib\site-packages\paddleocr\tools\infer\utility.py", line 133, in create_predictor
predictor = create_paddle_predictor(config)
paddle.fluid.core_avx.EnforceNotMet:

--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
Windows not support stack backtrace yet.

----------------------
Error Message Summary:
----------------------
Error: Operator rnn has not been registered
[Hint: op_info_ptr should not be null.] (at D:\2.0.0-beta0\paddle\paddle/fluid/framework/op_info.h:140)

0
收藏
回复
全部评论(4)
时间顺序
d
d带飞x
#2 回复于2021-02

已解决

0
回复
c
cwt0408
#3 回复于2021-02

怎么解决的?

0
回复
红颜醉悦
#4 回复于2021-03

请问怎么解决的

 

0
回复
红颜醉悦
#5 回复于2021-03
请问怎么解决的  

已解决,paddlepaddle版本问题导致,重新安装:paddlepaddle-2.0.0rc1-cp36-cp36m-win_amd64 解决

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户