TAO Toolkit v5.3.0
NVIDIA TAO v5.3.0

TRTEXEC with OCDNet

The trtexec tool is a command-line wrapper included as part of the TensorRT samples. TAO 5.0.0 exposes the trtexec tool in the TAO Deploy container (or task group when run via launcher) for deploying the model with an x86-based CPU and discrete GPUs. To run trtexec on other platforms, such as Jetson devices, or with versions of TensorRT that are not used by default in the TAO containers, you can follow the official TensorRT documentation on how to get trtexec.

This section describes how to generate a TensorRT engine using trtexec, which allows you to deploy TAO-trained models on TensorRT, Triton, and Deepstream.

To generate an .onnx file for OCDNet, refer to the OCDNet documentation. You can also refer to the OCDNet TAO-Deploy documentation for instructions on generating an INT8 calibration file.

Copy
Copied!
            

trtexec --onnx=/path/to/model.onnx \ --maxShapes=input:16x3x736x1280 \ --minShapes=input:1x3x736x1280 \ --optShapes=input:8x3x736x1280 \ --calib=/path/to/int8/calib.txt \ --fp16 \ --int8 \ --saveEngine=/path/to/save/trt/model.engine

Previous TRTEXEC with Multitask Classification
Next TRTEXEC with OCRNet
© Copyright 2023, NVIDIA.. Last updated on Aug 26, 2024.