项目来源:
https://github.com/jiangjiawen/mmdeploy0.6_tensorrt8_cpp_windows
安装依赖项:
pip install nvidia-pyindex
pip install polygraphy
python tools/onnx2tensorrt.py configs/mmdet/instance-seg/instance-seg_tensorrt_static.....
polygraphy surgeon sanitize end2end.onnx --fold-constants -o end2end_folded.onnx
onnx 加载Plugins
[01/22/2023-21:55:46] [V] [TRT] Registered plugin creator - ::GridAnchor_TRT version 1
[01/22/2023-21:55:46] [V] [TRT] Registered plugin creator - ::GridAnchorRect_TRT version 1
[01/22/2023-21:55:46] [V] [TRT] Registered plugin creator - ::NMS_TRT version 1
[01/22/2023-21:55:46] [V] [TRT] Registered plugin creator - ::Reorg_TRT version 1
[01/22/2023-21:55:46] [V] [TRT] Registered plugin c