How to run yolox on Jetson Nano

Hi NVIDIA experts,

I am currently using the JETSON NANO DEVELOPER KIT to try out AI demos. I have understood how to run AI models by following the “HELLO AI World” tutorial. However, I’m unsure about how to run demos with the other AI model. I would like to run object detection demo using the AI model based on YOLOX. Could you please guide me on how to run an object detection demo with YOLOX on JETSON NANO, specifically using a USB camera?

Thank you in advance.

Keisuke Koseki

Hi,

YOLOX is deployed with PyTorch.
So you can follow the instructions below to install PyTorch on Nano and run the authors’ code.

Thanks.

Hi NVIDIA experts,

Thank you for your reply.

I have an additional question.
If I want to implement own ONNX model and run the AI demo, what steps should I take?

Thank you in advance.

Keisuke Koseki

Hi,

You can customize an ONNX model (retrain or transfer learning) in the same way as the desktop environment.

Do you want to build a model with custom architecture or train with custom data?
For custom data, you can find an example below:

Thanks.

Hi NVIDIA experts,
Thank you for your reply.

Sorry, I didn’t explain the question enough.
I do not need to do any training, I want to run the inference of a pre-trained YoloX ONNX model.
Do you have any reference python script I can reuse?
Alternatively, is there a way to compile my own trained ONNX model so that it can be run with the Jetpack SDK?

Thank you in advance.

Hi,

You can deploy it with PyTorch directly.

Please refer to the below link to run the ONNX model with TensorRT.
https://elinux.org/Jetson/L4T/TRT_Customized_Example#OpenCV_with_ONNX_model

You might need some customized pre-processing/post-processing for the YOLOX model.

Thanks.

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