PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
42.92k stars 7.71k forks source link

floating point exception while convert onnx -> tensorrt model for ppocv3_rec model! #8214

Closed Cute-Yang closed 8 months ago

Cute-Yang commented 1 year ago

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

QianLingjun commented 1 year ago

请问你解决了吗?我是onnx转rknn时候出现这个错误,onnx验证是可以直接进行预测的,没有问题。转模型时候,出现问题了。

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

Cute-Yang commented 8 months ago
  • floating point exception 这个识别阶段的模型具有三个动态维度,batch_size,heigh,width,指定一个动态范围之后,就可以转成功了,后面我是直接使用tensorRT的api搭建模型的,就不会出现这种奇怪的问题了,你看下你那个是否也需要指定动态范围