Invalid input pafmap dimension when running deepstream-gesture-app but deepstream-bodypose2d-app works

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
Jetson Xavier
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

I clone into deepstream/deepstream/sources folder
git clone GitHub - NVIDIA-AI-IOT/deepstream_tao_apps: Sample apps to demonstrate how to deploy models trained with TAO on DeepStream

follow README for downloading models.

sudo make bodypose2D app and gesture app

I had to generate engine files for bodypose2D with tao-converter to get it to work. Used the following command:
sudo ./tao-converter -e /opt/nvidia/deepstream/deepstream/sources/deepstream_tao_apps/models/bodypose2d/model.etlt_b32_gpu0_fp16.engine -p input_1:0,1x288x384x3,1x288x384x3,32x288x384x3 -t fp16 -k nvidia_tlt -m 1 nvidia_tlt /opt/nvidia/deepstream/deepstream/sources/deepstream_tao_apps/models/bodypose2d/model.etlt

Then running bodypose2D app works fine. Was even able to write my own custom app using the basic outline of this app.

Now tried to run the gesture app and I get:

Decodebin child added: source
Decodebin child added: decodebin0
Decodebin child added: nvjpegdec0
In cb_newpad
###Decodebin pick nvidia decoder plugin.
terminate called after throwing an instance of 'std::runtime_error'
  what():  invalid input pafmap dimension.
Aborted (core dumped)

After some troubleshooting, the pafmap dimensions are:
c: 36, h: 48, w:19
and heatmap dims are:
c: 144, h: 192, w:38

The app fails at line 433:
bodypose2Dposepost->execute(output, tempPafmap, tempHeatmap, post_w, post_h);

• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

what is the start command? could you share the input file? Thanks! we will try to reproduce.

I found the issue - I thought I had to provide the gesture_sgie config file in the start command but it should be the bodypose model config file. I overlooked that in the sample.

Causing error:

nvidia@ubuntu:/opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_tao_apps/apps/tao_others/deepstream-gesture-app$ ./deepstream-gesture-app 2 2 ../../../configs/gesture_tao/gesture_sgie_config.txt file:///home/nvidia/test.png ./gesture


./deepstream-gesture-app 2 2 ../../../configs/bodypose2d_tao/sample_bodypose2d_model_config.txt file:///home/nvidia/test.png /home/nvidia/gesture
1 Like

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