-
Notifications
You must be signed in to change notification settings - Fork 1.6k
ch_ppocr_mobile_v2_0_rec_v2_0模型在arm7hf平台上的输入tensor的shape不符合预期 #10658
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
Comments
完整的测试代码
|
tensor的resize是很基础的操作,不太可能有bug,倾向于怀疑导出的nb模型有问题。建议检查下模型是否正常,多加些打印看看。 |
另外可以看下头文件和对应的库是否对应上,以及拿input_tensor0可以用predictor->GetInput(0)的接口试试,看着像是拿到了一个非法tensor,内存读错了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
为使您的问题得到快速解决,在建立 Issue 前,请您先通过如下方式搜索是否有相似问题: 历史 issue, FAQ 文档, 官方文档
建立 issue 时,为快速解决问题,请您根据使用情况给出如下信息:
1)Paddle Lite 版本:v2.10
2)Host 环境:Ubuntu 18.04
1)模型名称 ch_ppocr_mobile_v2_0_rec_v2_0
2)模型链接 https://paddlelite-demo.bj.bcebos.com/NNAdapter/models/PaddleOCR/ch_ppocr_mobile_v2.0_rec_infer.tgz
input_tensor0->Resize({1, 3, 32, 100});
实际输出的是[0 1 0 3],可能是什么原因导致的The text was updated successfully, but these errors were encountered: