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

使用paddle_inference.dll 最新版,开启TensorRT, 推理paddleocr, 出错。 #11171

Open
yjszyd0813 opened this issue Nov 1, 2023 · 3 comments
Assignees

Comments

@yjszyd0813
Copy link

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

  • 系统环境/System Environment:
  • 版本号/Version:Paddle:2.4.2 PaddleOCR:2.6.2 问题相关组件/Related components:
  • 运行指令/Command Code:
  • 完整报错/Complete Error Message:

[runtime.cpp::nvinfer1::Runtime::~Runtime::346] Error Code 3: API Usage Error (Parameter check failed at: runtime.cpp::nvinfer1::Runtime::~Runtime::346, condition: mEngineCounter.use_count() == 1. Destroying a runtime before destroying deserialized engines created by the runtime leads to undefined behavior.

这个错误是因为什么? 开启TensorRT,总是会中断 build tensorrt engine

@heguyu
Copy link

heguyu commented Feb 7, 2024

我的也是
Error Code 3: API Usage Error (Parameter check failed at: runtime.cpp::nvinfer1::Runtime::~Runtime::346, condition: mEngineCounter.use_count() == 1. Destroying a runtime before destroying deserialized engines created by the runtime leads to undefined behavior.
)

@mrchengshunlong
Copy link

@yjszyd0813 @heguyu 我解决了,但不知道是哪个起的作用,我在PaddleOCR加入了参数max_text_length=40,use_dynamic_shape=True ,并且将将zlibwapi.dll添加到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin ,将zlibwapi.lib添加到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\lib\x64
这是zlib123dll.zip 的地址,希望可以帮到你们

@SWHL SWHL added the TensorRT label Jun 11, 2024
Copy link
Contributor

github-actions bot commented Jan 1, 2025

This issue is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the stale label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants