PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

paddleocr3.0 转换trt 出现算子问题

Open SHOUshou0426 opened this issue 6 months ago • 3 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 (问题描述)

Image 采用了官方给出转换onnx 实例,对recv4进行转换onnx 没有问题,转换trt 出现算子问题 使用onnxslim 也会出现有一些算子不支持

Image

🏃‍♂️ Environment (运行环境)

win 10 cud11.6 tenosrrt8

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

D:\TensorRT-8.6.1.6\bin\trtexec.exe --onnx=Rec4.onnx --minShapes=x:1x3x48x160 --optShapes=x:1x3x48x320 --maxShapes=x:8x3x48x3200 --saveEngine=Rec4.engine

SHOUshou0426 avatar Jun 18 '25 09:06 SHOUshou0426

PaddleOCR的ONNX模型转换能力底层来源于Paddle2ONNX。建议移步Paddle2ONNX仓库issue区,在那里可以得到更专业的建议~

Bobholamovic avatar Jun 18 '25 12:06 Bobholamovic

@SHOUshou0426 方便在https://github.com/inisis/OnnxSlim/issues 提一个issue吗,看起来onnxslim有一个bug。

inisis avatar Jun 19 '25 05:06 inisis

Thank you for your reply. The issue has been resolved.

SHOUshou0426 avatar Jun 19 '25 06:06 SHOUshou0426