mmcv icon indicating copy to clipboard operation
mmcv copied to clipboard

tensorrt plugin install wrong

Open Winnie202 opened this issue 3 years ago • 5 comments

Here is my relevant configuration: mmcv-full 1.5.3 mmedit 0.15.0
tensorrt 8.2.1.8 torch 1.8.1 torchvision 0.9.1

But I am getting the following error 2022-07-13 11-02-51屏幕截图

please help me to solve this problem

Winnie202 avatar Jul 13 '22 03:07 Winnie202

Hi~ Have you followed the steps in https://mmcv.readthedocs.io/en/latest/deployment/tensorrt_plugin.html?highlight=trt? It seems that you've not TensorRT correctly

HAOCHENYE avatar Jul 14 '22 05:07 HAOCHENYE

Hi~ Have you followed the steps in https://mmcv.readthedocs.io/en/latest/deployment/tensorrt_plugin.html?highlight=trt? It seems that you've not TensorRT correctly

I installed tensorRT and mmcv-full first, and then followed the command: git clone https://github.com/open-mmlab/mmcv.git export TENSORRT_DIR=pwd/TensorRT-7.2.1.6 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TENSORRT_DIR/lib MMCV_WITH_OPS=1 MMCV_WITH_TRT=1 pip install -e .

image

image

Winnie202 avatar Jul 14 '22 11:07 Winnie202

Hi, It seems you are using tensorRT 8.10. How about trying TensorRT-7.2.1.6 and following the steps in docs. image

HAOCHENYE avatar Jul 15 '22 09:07 HAOCHENYE

您好,看来您使用的是 tensorRT 8.10。如何尝试 TensorRT-7.2.1.6 并按照文档中的步骤操作。 图片

Yes, I installed tensorRT8.2.1.8, but I changed the version number in the command during the actual operation. The reason is that the version is different and the mmcv plugin cannot be installed?

Winnie202 avatar Jul 15 '22 10:07 Winnie202

Yes, TensorRT plugins in MMCV do not support TensorRT8+, please try the plugin in MMDeploy.

grimoire avatar Jul 16 '22 02:07 grimoire