I use pytorch(1.4.0),onnx(1.6.0),tensorrt(6.0).
I can conver onnx form torch sucessful. But cant conver onnx to tensorrt.
These are the erros:
[TensorRT] ERROR: (Unnamed Layer* 0) [Slice]: slice is out of input range
ERROR: Failed to parse the ONNX file.
In node 9 (convert_axis): UNSUPPORTED_NODE: Assertion failed: axis >= 0 && axis < nbDims
Traceback (most recent call last):
File "main.py", line 180, in
profile_trt(buildengine('yolov5{}.onnx'.format(batch_size), using_half), batch_size)
File "main.py", line 94, in profile_trt
assert(engine is not None)
AssertionError
I use pytorch(1.4.0),onnx(1.6.0),tensorrt(6.0). I can conver onnx form torch sucessful. But cant conver onnx to tensorrt.
These are the erros: [TensorRT] ERROR: (Unnamed Layer* 0) [Slice]: slice is out of input range ERROR: Failed to parse the ONNX file. In node 9 (convert_axis): UNSUPPORTED_NODE: Assertion failed: axis >= 0 && axis < nbDims Traceback (most recent call last): File "main.py", line 180, in
profile_trt(buildengine('yolov5{}.onnx'.format(batch_size), using_half), batch_size)
File "main.py", line 94, in profile_trt
assert(engine is not None)
AssertionError