Best practice for running models like Yolo on Orin AGX?

I’m developing an application to run on the Orin AGX Development kit that needs to run some neural networks including a YoloV5 object detector. Is the standard way to do this, convert the YoloV5 model from Pytorch format (pt) to the TensorRT format (engine) and then write some python to call the engine and do the inferencing?

Hi @ian86, yes, by converting/running the model with TensorRT, you will see increased inferencing performance. Here are two examples on GitHub that I found for YOLOv5 + TensorRT inference:

Looks like these examples have a dependencies on python modules: tensorrt and pycuda.
Does Nvidia supply these modules for the Orin? The reason I ask, is that I haven’t been able to find them.

@ian86 the tensorrt Python module should already be installed along with JetPack, and you can install PyCUDA from pip (or you can run it inside the l4t-pytorch or l4t-ml containers which already have it installed). You can see the steps I follow for building PyCUDA in the containers here:

1 Like

Thanks Dusty, its going now.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.