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

paddleocr4 onnx模型转engine出现错误咋解决啊 #13818

Open
3 tasks done
yxl23 opened this issue Sep 4, 2024 · 2 comments
Open
3 tasks done

paddleocr4 onnx模型转engine出现错误咋解决啊 #13818

yxl23 opened this issue Sep 4, 2024 · 2 comments

Comments

@yxl23
Copy link

yxl23 commented Sep 4, 2024

🔎 Search before asking

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

🐛 Bug (问题描述)

image

🏃‍♂️ Environment (运行环境)

win10
tensorrt 8.5
cuda 11.8

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

trtexec --onnx=rec.onnx --saveEngine=rec.engine

@GreatV
Copy link
Collaborator

GreatV commented Sep 6, 2024

错误信息显示:

  1. Dynamic dimensions:输入的维度没有被指定,导致解析失败。
  2. Engine 生成失败:由于输入维度不明确,导致无法正确构建网络引擎。

为了解决这些问题,可以尝试以下几种方法:

  1. 指定输入维度:可能需要在构建 TensorRT 引擎时,明确地设置输入的形状。
  2. 重新检查输入数据:确保输入的形状在推理时是有效的,并且输入与模型结构一致。

@yxl23
Copy link
Author

yxl23 commented Sep 6, 2024

那我应该指定的维度是多少啊

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