PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

PaddleOCRv4检测和识别模型利用PaddleSlim量化裁剪过程中的问题

Open yunnan66 opened this issue 4 months ago • 0 comments

🔎 Search before asking

  • [X] I have searched the PaddleOCR Docs and found no similar bug report.
  • [X] I have searched the PaddleOCR Issues and found no similar bug report.
  • [X] I have searched the PaddleOCR Discussions and found no similar bug report.

🐛 Bug (问题描述)

您好! 感谢您的开源和维护工作,我在裁剪训练v4的检测和识别模型时,报错如下:ValueError: The size of input is too big. Please consider saving it to file and ‘load_op’ to load it 运行命令:python deploy/slim/prune/sensitivity_anal.py -c configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_cml.yml -o Global.pretrained_model=./pretrain_models/ch_PP-OCRv4_det_train/best_accuracy Global.save_model_dir=./output/prune_model/ 另外,还有一个问题是通过量化裁剪的方式是否可以提升PaddleOCR模型的处理速度,具体该如何操作,期待您的回复,谢谢。

🏃‍♂️ Environment (运行环境)

ubuntu 18.04 python 3.9 paddlapaddle 2.6.1 paddleslim 2.6.0

🌰 Minimal Reproducible Example (最小可复现问题的Demo)

PaddleOCR的工程是PaddleOCR-main

yunnan66 avatar Oct 17 '24 02:10 yunnan66