PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

windosws使用ppccrv3推理,出现bug,推理时间累加

Open xiaomujiang opened this issue 2 years ago • 3 comments

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

  • 系统环境/System Environment: window10

  • 版本号/Version:Paddle: PaddleOCR: 问题相关组件/Related components:

  • paddleocr 2.5.0.3 paddlepaddle-gpu 2.3.1.post116

  • 运行指令/Command Code: python tools/infer/predict_det.py --image_dir="./doc/imgs/0037.jpg" --det_model_dir="./pretrain_models/ppv3_infer_model_server/ch_ppocr_server_v2.0_det_infer/" --det_db_box_thresh=0.5

  • 完整报错/Complete Error Message: [2022/09/07 15:32:29] ppocr INFO: The predict time of ./id_data/train_data/0004.jpg: 0.2369992733001709 [2022/09/07 15:32:29] ppocr INFO: The visualized image saved in ./inference_results\det_res_0004.jpg [2022/09/07 15:32:29] ppocr INFO: 0005.jpg [[[44.0, 243.0], [310.0, 238.0], [311.0, 258.0], [44.0, 263.0]], [[94.0, 192.0], [255.0, 191.0], [255.0, 207.0], [94.0, 208.0]], [[92.0, 175.0], [270.0, 174.0], [270.0, 192.0], [92.0, 193.0]], [[48.0, 158.0], [87.0, 158.0], [87.0, 172.0], [48.0, 172.0]], [[141.0, 116.0], [238.0, 120.0], [237.0, 140.0], [141.0, 136.0]], [[47.0, 122.0], [124.0, 117.0], [125.0, 135.0], [48.0, 140.0]], [[144.0, 90.0], [207.0, 90.0], [207.0, 107.0], [144.0, 107.0]], [[49.0, 90.0], [114.0, 90.0], [114.0, 107.0], [49.0, 107.0]], [[46.0, 57.0], [135.0, 59.0], [135.0, 79.0], [46.0, 77.0]]]

==================================省略---=== [2022/09/07 15:58:35] ppocr INFO: The predict time of ./id_data/train_data/0355.jpg: 8.547085285186768 [2022/09/07 15:58:35] ppocr INFO: The visualized image saved in ./inference_results\det_res_0355.jpg [2022/09/07 15:58:44] ppocr INFO: 0356.jpg [[[44.0, 244.0], [309.0, 238.0], [310.0, 257.0], [44.0, 263.0]], [[93.0, 192.0], [238.0, 192.0], [238.0, 208.0], [93.0, 208.0]], [[92.0, 174.0], [269.0, 173.0], [269.0, 192.0], [92.0, 194.0]], [[48.0, 158.0], [87.0, 158.0], [87.0, 172.0], [48.0, 172.0]], [[142.0, 118.0], [238.0, 120.0], [238.0, 138.0], [142.0, 136.0]], [[47.0, 122.0], [125.0, 117.0], [126.0, 135.0], [48.0, 140.0]], [[143.0, 90.0], [238.0, 88.0], [238.0, 106.0], [143.0, 107.0]], [[48.0, 90.0], [114.0, 88.0], [115.0, 106.0], [48.0, 107.0]], [[47.0, 55.0], [135.0, 58.0], [135.0, 78.0], [46.0, 75.0]]]

[2022/09/07 15:58:44] ppocr INFO: The predict time of ./id_data/train_data/0356.jpg: 8.723669290542603 [2022/09/07 15:58:44] ppocr INFO: The visualized image saved in ./inference_results\det_res_0356.jpg

xiaomujiang avatar Sep 07 '22 08:09 xiaomujiang

代码是当前最新代码 运行命令 python tools/infer/predict_det.py --det_algorithm="DB --image_dir="./doc/imgs/" --det_model_dir="./pretrain_models/ppv3_infer_model_server/ch_ppocr_server_v2.0_det_infer/" --det_db_box_thresh=0.5 --use_gpu=True

xiaomujiang avatar Sep 07 '22 08:09 xiaomujiang

可以具体描述下“推理时间累加”是什么意思吗

MissPenguin avatar Sep 07 '22 12:09 MissPenguin

可以具体描述下“推理时间累加”是什么意思吗

第一张图 推理0.5s 第二张图 推理 0.51 ..... 第20张图 0.6s 第100张图推理1.2s

xiaomujiang avatar Sep 16 '22 07:09 xiaomujiang

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 07 '23 08:07 github-actions[bot]