This repo aims at showing examples of how to run inference on Nvidia Jetson devices, the code has been tested on both Jetson Nano (4GB version) and Jetson AGX Xavier Developer Kit (16 GB version). In this repo, we show two different methods of doing inference using python and your own model:
- Using Nvidia Deepstream framework, see sample code in this folder
- Using TensorRT directly with custom video processing code, see sample code in this folder
Why do we want to have this repo?
When working with Nvidia python SDKs (especially Deepstream), we figured out there are more questions than answers.
Therefore, we decided to keep the record for future use purpose.
For setting up your Nvidia device, we've provided some tips for Jetson AGX Xavier Developer Kit. We did not provide guidance for Nano device because the setup process is similar and you will have a success if you just follow the official setup documentation.
Can I run the sample code using non-Jetson Device
Yes you can. However, you must make sure your device has an Nvidia GPU and satisfy the requirement of using TensorRT or Deepstream.
This repository uses the model from PaddlePaddle OCR, specifically, text detection only. We provided a copy of the ONNX model used in this repo, see here. If you have any questions related to the model, please directly contact PaddlePaddle OCR.