TRTEXEC with ReIdentificationNet Transformer#

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 ReIdentificationNet Transformer model#

To generate an .onnx file for ReIdentificationNet Transformer, refer to the ReIdentificationNet Transformer documentation. ReIdentificationNet Transformer currently does not support INT8 calibration.

trtexec --onnx=/path/to/model.onnx \
        --maxShapes=input:16x3x384x128 \
        --minShapes=input:1x3x384x128 \
        --optShapes=input:4x3x384x128 \
        --fp16 \
        --saveEngine=/path/to/save/trt/model.engine