Description
Hello, I’m trying to build a tensorrt engine from a onnx file through the command “trtexec”. I’ve obtained the onnx file from doing the Darknet Yolov4 conversion to ONNX. I ran into a problem I could not wrap my head around.
Error:
&&&& RUNNING TensorRT.trtexec # /home/tw34/Downloads/TensorRT-5.1.5.0/bin/trtexec --onnx=yolov4_1_3_416_416_static.onnx
[I] onnx: yolov4_1_3_416_416_static.onnx
Input filename: yolov4_1_3_416_416_static.onnx
ONNX IR version: 0.0.4
Opset version: 11
Producer name: pytorch
Producer version: 1.3
Domain:
Model version: 0
Doc string:
WARNING: ONNX model has a newer ir_version (0.0.4) than this parser was built against (0.0.3).
While parsing node number 0 [Conv]:
ERROR: ModelImporter.cpp:288 In function importModel:
[5] Assertion failed: tensors.count(input_name)
[E] failed to parse onnx file
[E] Engine could not be created
[E] Engine could not be created
&&&& FAILED TensorRT.trtexec # /home/tw34/Downloads/TensorRT-5.1.5.0/bin/trtexec --onnx=yolov4_1_3_416_416_static.onnx
Any helps or explanation are all highly appreciate, thanks!
Environment
TensorRT Version:
GPU Type: RTX 2070
Nvidia Driver Version: 450.66
CUDA Version: 10.1
CUDNN Version: 7.6.2
Operating System + Version: Ubuntu 18.04
Python Version (if applicable): 3.6
TensorFlow Version (if applicable): 2.0.0.rc1
PyTorch Version (if applicable): 1.4.0
Baremetal or Container (if container which image + tag):
Relevant Files
I upload the onnx file to the google drive for anyone that would like to check it out
https://drive.google.com/file/d/1jMY__VP9g00HvLwTRBSVfgcoXOZQCI2t/view?usp=sharing
Steps To Reproduce
The command I use to get this error is “/usr/src/tensorrt/bin/trtexec --onnx=./yolov4_1_3_416_416_static.onnx”