I am using Jetson Nano with Jetpack 4.4(recommended in forum) and I want to use Nvidia’s purpose built model Peoplenet in my own application (not deepstream).
For clarity, I downloaded the peoplenet’s pruned model from ngc container peoplenet pruned model and used TLT converter downloaded for Jetson and converted the etlt file to TRT engine successfully. I am able to use this generated engine file in deepstream-app, but I don’t find any references how to use it in my custom application.
I want to know what is the preprocessing that has been used in peoplenet. Its mentioned in the peoplenet link to perform dbscan or nms operation. And how to post process the output from model (60 * 34 * 12 and 60 * 34 * 3).
Thanks, for the reference. The code you referred has the post processing step telling how to parse the output from model.
I implemented this in my application and when I run inference on a sample image, the confidence value coming from the model is 0 at all positions. With respect to preprocessing, I am multiplying the image with scale factor 0.00392156 and converting to RGB color space.
I am attaching the source code here, kindly let me know if I miss anything. inferPeopleNet.cpp (8.0 KB)
If this could help anyone, Karthee file contains 2 mistakes. You need to synchronize cuda stream after the “enqueue” line 155 with code : cudaStreamSynchronize(m_CudaStream);. And you need to copy inferImage to cuda instead of inputImage at line 149.