运行时 paddleocr示例时,发生了core dump

ukxgm1gy  于 2023-02-04  发布在  其他
关注(0)|答案(6)|浏览(439)

(mxnet_py39) [root@AIServer-0 ppocr_img]# paddleocr --image_dir ./imgs/11.jpg --use_angle_cls true --det_model_dir="../ch_PP-OCRv3_det_infer" --rec_model_dir=../ch_PP-OCRv3_rec_infer --cls_model_dir=../ch_PP-OCRv3_rec_infer
[2022/08/01 15:17:03] ppocr DEBUG: Namespace(help='==SUPPRESS==', use_gpu=True, ir_optim=True, use_tensorrt=False, min_subgraph_size=15, precision='fp32', gpu_mem=500, image_dir='./imgs/11.jpg', det_algorithm='DB', det_model_dir='../ch_PP-OCRv3_det_infer', det_limit_side_len=960, det_limit_type='max', det_db_thresh=0.3, det_db_box_thresh=0.6, det_db_unclip_ratio=1.5, max_batch_size=10, use_dilation=False, det_db_score_mode='fast', det_east_score_thresh=0.8, det_east_cover_thresh=0.1, det_east_nms_thresh=0.2, det_sast_score_thresh=0.5, det_sast_nms_thresh=0.2, det_sast_polygon=False, det_pse_thresh=0, det_pse_box_thresh=0.85, det_pse_min_area=16, det_pse_box_type='quad', det_pse_scale=1, scales=[8, 16, 32], alpha=1.0, beta=1.0, fourier_degree=5, det_fce_box_type='poly', rec_algorithm='SVTR_LCNet', rec_model_dir='../ch_PP-OCRv3_rec_infer', rec_image_shape='3, 48, 320', rec_batch_num=6, max_text_length=25, rec_char_dict_path='/root/anaconda3/envs/mxnet_py39/lib/python3.9/site-packages/paddleocr/ppocr/utils/ppocr_keys_v1.txt', use_space_char=True, vis_font_path='./doc/fonts/simfang.ttf', drop_score=0.5, e2e_algorithm='PGNet', e2e_model_dir=None, e2e_limit_side_len=768, e2e_limit_type='max', e2e_pgnet_score_thresh=0.5, e2e_char_dict_path='./ppocr/utils/ic15_dict.txt', e2e_pgnet_valid_set='totaltext', e2e_pgnet_mode='fast', use_angle_cls=True, cls_model_dir='../ch_PP-OCRv3_rec_infer', cls_image_shape='3, 48, 192', label_list=['0', '180'], cls_batch_num=6, cls_thresh=0.9, enable_mkldnn=False, cpu_threads=10, use_pdserving=False, warmup=False, draw_img_save_dir='./inference_results', save_crop_res=False, crop_res_save_dir='./output', use_mp=False, total_process_num=1, process_id=0, benchmark=False, save_log_path='./log_output/', show_log=True, use_onnx=False, output='./output', table_max_len=488, table_model_dir=None, table_char_dict_path=None, layout_path_model='lp://PubLayNet/ppyolov2_r50vd_dcn_365e_publaynet/config', layout_label_map=None, mode='structure', layout=True, table=True, ocr=True, lang='ch', det=True, rec=True, type='ocr', ocr_version='PP-OCRv3', structure_version='PP-STRUCTURE')
[2022/08/01 15:17:05] ppocr INFO: ./imgs/11.jpg

C++ Traceback (most recent call last):

No stack trace in paddle, may be caused by external reasons.

Error Message Summary:

FatalError: Segmentation fault is detected by the operating system.
[TimeInfo: *** Aborted at 1659338227 (unix time) try "date -d @1659338227" if you are using GNU date ***]
[SignalInfo: *** SIGSEGV (@0x0) received by PID 787520 (TID 0x7f7a703ab740) from PID 0 ***]

Segmentation fault (core dumped)

paddlepaddle版本是GPU版本
paddle 1.0.1
paddle-bfloat 0.1.7
paddleocr 2.5.0.3
paddlepaddle 2.3.1

cuda版本是11.2
cudnn是8.0
python是3.9

请教:
1、我用的是python运行环境,为啥会跑到c++那边去的呢?
2、以前谁碰到过这个问题不?我把pp和ppocr卸载重装了,仍然有问题

bbmckpt7

bbmckpt71#

先看下 paddle.utils.run_check() ,确认paddle可以正常运行,然后关闭gpu推理,仅使用cpu看下

ttvkxqim

ttvkxqim2#

用cpu运行是正常的。就是比较慢

vsikbqxv

vsikbqxv3#

@littletomatodonkey 碰到相同的问题

cidc1ykv

cidc1ykv4#

先看下 paddle.utils.run_check() ,确认paddle可以正常运行,然后关闭gpu推理,仅使用cpu看下

上面的命令运行正确吗?

zazmityj

zazmityj5#

先看下 paddle.utils.run_check() ,确认paddle可以正常运行,然后关闭gpu推理,仅使用cpu看下

上面的命令运行正确吗?

我的好了 把paddlepaddle-gpu版本降级就好了,可能和我的cuda版本不太兼容

6ie5vjzr

6ie5vjzr6#

paddlepaddle-gpu降级为多少

相关问题