1.问题描述
在使用PPOCRLabel进行自动标注的过程中,发现文本检测模块运行速度由最开始的每帧三百多毫秒逐渐变为每帧数秒,且速度还在不断变慢中。初步定位为后处理DBPostProcess耗时在增加,db模型预测速度正常。其余方向分类和文本识别模块运行正常。
2.运行环境
ubuntu16.04,paddlepaddle-gpu 2.0.0rc0,PaddleOcr为最新版本
3.终端输出信息
/home/scxd/anaconda3/envs/tf15/bin/python /home/scxd/下载/PaddleOCR/PPOCRLabel/PPOCRLabel.py
You are using Paddle compiled with TensorRT, but TensorRT dynamic library is not found. Ignore this if TensorRT is not needed.W1211 15:50:30.711303 20512 analysis_predictor.cc:1042] Deprecated. Please use CreatePredictor instead.
Namespace(cls=True, cls_batch_num=30, cls_image_shape='3, 48, 192', cls_model_dir='/home/scxd/.paddleocr/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_max_side_len=960, det_model_dir='/home/scxd/.paddleocr/det', enable_mkldnn=True, gpu_mem=8000, image_dir=None, 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='/home/scxd/.paddleocr/rec/ch', use_angle_cls=True, use_gpu=False, use_pdserving=False, use_space_char=True, use_tensorrt=False, use_zero_copy_run=True)
--- fused 0 scale with matmul
--- Fused 0 ReshapeTransposeMatmulMkldnn patterns
--- Fused 0 ReshapeTransposeMatmulMkldnn patterns with transpose's xshape
--- Fused 0 ReshapeTransposeMatmulMkldnn patterns with reshape's xshape
--- Fused 0 ReshapeTransposeMatmulMkldnn patterns w