tensorrtx
tensorrtx copied to clipboard
retinaface序列化时的报错
Env
- GPU, titan rtx
- OS, ubuntu18.04
- Cuda 11.3
- TensorRT 8.6.1
About this repo
retinaface
Your problem
在执行 ./retina_r50 -s 和 ./retina_mnet -s 时,出现如下错误:
[01/10/2024-00:03:12] [E] [TRT] 3: [builder.cpp::~Builder::341] Error Code 3: API Usage Error (Parameter check failed at: optimizer/api/builder.cpp::~Builder::341, condition: mObjectCounter.use_count() == 1. Destroying a builder object before destroying objects it created leads to undefined behavior.
已解决。将retina_r50.cpp中地257行的
engine->destroy(); builder->destroy();
改为
engine->destroy(); config->destroy(); builder->destroy();
retina_mnet.cpp中也需要类似的修改。
@dzw001 这是TRT8.5+版本引入的问题,能否帮忙提个PR?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.