You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Unexpected keys" warning is happend on mmdetection inference too, but detected objects are returned well (bounding boxes coordinates are right).
Also I tried to run command on TensorRT 8.2.1.8 and with cudnn 8.0.4 and on TensorRT 8.0.1.6 with cudnn 8.0.4 . Result the same - segfault error.
GPU memory usage is OK (1-2GB).
fp32 precision is also crashed on Tensorrt 8.
Running on Tensorrt 7.2.2.3, cudnn 8.0.1 works well - engine is created successfully.
Sorry for the late reply.
It seems that you have not set the opt_shape_param when converting the model. Since the input shape of Yolox is different from other models in MMDetection. Please try to set the opt shape and try it again. Thank you.
By the way, OpenMMLab has released MMDeploy which might have better support about some new models.
Describe the bug
I try to convert the yolox_l based model to trt engine, but get the error:
"Unexpected keys" warning is happend on mmdetection inference too, but detected objects are returned well (bounding boxes coordinates are right).
Also I tried to run command on TensorRT 8.2.1.8 and with cudnn 8.0.4 and on TensorRT 8.0.1.6 with cudnn 8.0.4 . Result the same - segfault error.
GPU memory usage is OK (1-2GB).
fp32 precision is also crashed on Tensorrt 8.
Running on Tensorrt 7.2.2.3, cudnn 8.0.1 works well - engine is created successfully.
To Reproduce
environment:
PyTorch version: 1.8.0+cu111
Is debug build: False
CUDA used to build PyTorch: 11.1
OS: Ubuntu 20.04.2 LTS (x86_64)
GCC version: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Clang version: Could not collect
CMake version: version 3.19.1
Libc version: glibc-2.31
Python version: 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0] (64-bit runtime)
Python platform: Linux-5.11.0-41-generic-x86_64-with-glibc2.29
Is CUDA available: True
CUDA runtime version: 11.1.105
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 2070
Nvidia driver version: 470.86
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.2.1
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn.so.8.0.4
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.0.4
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.0.4
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.0.4
Versions of relevant libraries:
[pip3] mmcv-full==1.3.18
[pip3] mmdet==2.18.1
[pip3] mmdet2trt==0.5.0
[pip3] tensorrt==8.2.1.8
[pip3] torch==1.8.0+cu111
[pip3] torch2trt-dynamic==0.5.0
[pip3] torchaudio==0.8.0
[pip3] torchvision==0.9.0+cu111
[conda] Could not collect
Additional context
Link to model and config:
https://drive.google.com/drive/folders/1DuDR3LZJfYkanZe743dYarfQCyr7vZJa?usp=sharing
The text was updated successfully, but these errors were encountered: