Run TrafficCamNet on Jetson nano but can't understand output

Description

I’m running TrafficCamNet model on a Jetson nano with python and TensorRT without DeepStream. First I needed to convert the model so I follow same steps in this thread.

To convert the model with TAO instead of TLT:

tao-converter resnet18_trafficcamnet_pruned.etlt -k tlt_encode -c trafficnet_int8.txt -o output_cov/Sigmoid,output_bbox/BiasAdd -d 3,544,960 -i nchw -e trafficnet_int8.engine -m 1 -t int8 -b 1

Then I run the model with one image and get the results. I’m trying to understand the output. In the model page says that the output of the model is 60x34x16 bbox coordinate tensor and 60x34x4 class confidence tensor.

My output is ok (I think) as I got a flattened 60x34x16 array and a flattened 60x34x4 array (with values like this):

In order to understand this output I read this comment and say:

The model has the following two outputs:

  • output_cov/Sigmoid : [batchSize, Class_Num, gridcell_h, gridcell_w]
  • output_bbox/BiasAdd : a [batchSize, Class_Num, 4]

How can I extract this data from the output I get? How can I divide the flattened array to extract this? What means batchSize if I only use 1 image?

I know that I have to pass this data to a NMS algorithm but I have to pass it without normalization and the bboxes/confidence in order to get a result from it, but need to organize this bboxes and confidences.

Environment

TensorRT Version: 8.0.1.6
GPU Type: Jetson nano 2G
Python Version: 3.6.9

Hi,

This post looks like a more related TAO toolkit. We are moving this post to the TAO toolkit forum to get better help.

Thank you.

I use TAO converter to convert from .etlt to .engine and it works well, the program runs, I just want to know how to extract significant/relevant data from the model output. Think is not related to TAO toolkit.

Refer to GitHub - NVIDIA-AI-IOT/deepstream_tao_apps: Sample apps to demonstrate how to deploy models trained with TAO on DeepStream and tao-toolkit-triton-apps/detectnet_processor.py at main · NVIDIA-AI-IOT/tao-toolkit-triton-apps · GitHub

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