DetectNet v2 C++/Python examples?


Is there any good example (C++ or Python) of using Detectnet_V2 model, trained in TAO, for inference with TensorRT?

I tried example from Jetson-Inference, but it doesn’t work with TAO Detectnet_V2 model. As I understood because DetectNet V1 and V2 has different “input shape”.

Kind regards.

Officially, you can find the python code in the tao open source link. See tao_tensorflow1_backend/nvidia_tao_tf1/cv/detectnet_v2/scripts/ at main · NVIDIA/tao_tensorflow1_backend · GitHub.
You can also find the official inference github. See GitHub - NVIDIA-AI-IOT/deepstream_tao_apps: Sample apps to demonstrate how to deploy models trained with TAO on DeepStream. For example, Facedetect model is based on detectnet_v2 network. You can leverage it.

More info here. You can also login deepstream docker
docker run -it --rm /bin/bash
and find the postprocessing.

Also, there are some forum topics as reference.
How to run purpose built model Peoplenet on Jetson Nano in my own application?,
Incorrect Results When Using TensorRT Inference Server With TLT Model,
How to run Detectnet_v2_resnet18.trt without deepstream - #3 by Morganh.

Thank you!

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