Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行离线量化脚本quant_post.py失败 #1895

Open
xdd130 opened this issue Oct 17, 2024 · 1 comment
Open

运行离线量化脚本quant_post.py失败 #1895

xdd130 opened this issue Oct 17, 2024 · 1 comment
Assignees

Comments

@xdd130
Copy link

xdd130 commented Oct 17, 2024

使用PaddleSlim/demo/quant/quant_post/quant_post.py静态离线量化ch_ppocr_mobile_v2.0_rec_infer模型:
image
执行命令如下所示:
python quant_post.py --model_path ./ch_ppocr_mobile_v2.0_rec_infer --save_path ./quant_model/OCRv2_rec
但是我收到了下面的错误:
image
请问我该如何正确离线量化。

@FrostML
Copy link

FrostML commented Nov 1, 2024

只看报错是模型中某个 transpose 操作输入的形状不对。一般排查思路需要根据模型结构来确认下报错位置,具体定位下出错原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants