TRTEXEC with YOLO_v4_tiny#
The trtexec tool is a command-line wrapper included as part of the TensorRT samples.
Refer to the official TensorRT documentation for instructions on installing or building
trtexec on your target platform (including x86 with discrete GPU and Jetson devices).
This section describes how to generate a TensorRT engine using trtexec, which allows you to deploy TAO-trained
models on TensorRT, Triton, and Deepstream.
Sample Command for a YOLO_v4_tiny Model#
To generate an .onnx file for YOLO_v4_tiny, refer to the YOLO_v4_tiny documentation.
trtexec --onnx=/path/to/model.onnx \
--maxShapes=Input:16x3x384x1248 \
--minShapes=Input:1x3x384x1248 \
--optShapes=Input:8x3x384x1248 \
--calib=/path/to/int8/calib.txt \
--fp16 \
--int8 \
--saveEngine=/path/to/save/trt/model.engine