ERROR: nvdsinfer_backend.cpp:475 Failed to enqueue buffer in fulldims mode because binding idx: 0 with batchDims: 4x96x224x224 is not supported

Hi @Morganh I have completed 2d action recognition model training using TAO 3.0. Later tried to run the model on deepstream. I have edited the model path and lables.txt. When I tried to run the application, I got error. Here I haved added the entire log for your reference.

root@f16b7b23bcad:/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-3d-action-recognition# deepstream-3d-action-recognition -c deepstream_action_recognition_config.txt
num-sources = 4
Now playing: file:///opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_walk.mov, file:///opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_ride_bike.mov, file:///opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_run.mov, file:///opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_push.mov,
0:00:01.375051631 1040 0x560f26a67360 INFO nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1900> [UID = 1]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-6.0/samples/kamerai/activity_recognition/custom_actions/rgb_resnet18_2.etlt_b4_gpu0_fp16.engine
INFO: …/nvdsinfer/nvdsinfer_model_builder.cpp:610 [FullDims Engine Info]: layers num: 2
0 INPUT kFLOAT input_rgb 9x224x224 min: 1x9x224x224 opt: 4x9x224x224 Max: 4x9x224x224
1 OUTPUT kFLOAT fc_pred 6 min: 0 opt: 0 Max: 0

0:00:01.375113978 1040 0x560f26a67360 INFO nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2004> [UID = 1]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-6.0/samples/kamerai/activity_recognition/custom_actions/rgb_resnet18_2.etlt_b4_gpu0_fp16.engine
0:00:01.375513656 1040 0x560f26a67360 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus: [UID 1]: Load new model:config_infer_primary_2d_action.txt sucessfully
sequence_image_process.cpp:502, [INFO: CUSTOM_LIB] 2D custom sequence network shape NSHW[4, 96, 224, 224], reshaped as [N: 4, C: 3, S:32, H: 224, W:224]
sequence_image_process.cpp:524, [INFO: CUSTOM_LIB] Sequence preprocess buffer manager initialized with stride: 1, subsample: 0
sequence_image_process.cpp:526, [INFO: CUSTOM_LIB] SequenceImagePreprocess initialized successfully
Using user provided processing height = 224 and processing width = 224
Decodebin child added: source
Decodebin child added: decodebin0
Decodebin child added: source
Decodebin child added: decodebin1
Decodebin child added: source
Decodebin child added: decodebin2
Decodebin child added: source
Decodebin child added: decodebin3
Running…
Decodebin child added: qtdemux1
Decodebin child added: qtdemux0
Decodebin child added: qtdemux2
Decodebin child added: qtdemux3
Decodebin child added: multiqueue0
Decodebin child added: multiqueue1
Decodebin child added: multiqueue3
Decodebin child added: multiqueue2
Decodebin child added: h264parse0
Decodebin child added: h264parse2
Decodebin child added: h264parse1
Decodebin child added: capsfilter0
Decodebin child added: capsfilter1
Decodebin child added: capsfilter2
Decodebin child added: h264parse3
Decodebin child added: capsfilter3
Decodebin child added: aacparse0
Decodebin child added: aacparse2
Decodebin child added: aacparse3
Decodebin child added: aacparse1
Decodebin child added: avdec_aac1
Decodebin child added: avdec_aac2
Decodebin child added: avdec_aac0
Decodebin child added: avdec_aac3
Decodebin child added: nvv4l2decoder0
Decodebin child added: nvv4l2decoder1
Decodebin child added: nvv4l2decoder2
Decodebin child added: nvv4l2decoder3
In cb_newpad
In cb_newpad
In cb_newpad
In cb_newpad
In cb_newpad
In cb_newpad
In cb_newpad
In cb_newpad
WARNING: nvdsinfer_backend.cpp:162 Backend context bufferIdx(0) request dims:4x96x224x224 is out of range, [min: 1x9x224x224, max: 4x9x224x224]
ERROR: nvdsinfer_backend.cpp:475 Failed to enqueue buffer in fulldims mode because binding idx: 0 with batchDims: 4x96x224x224 is not supported
ERROR: nvdsinfer_context_impl.cpp:1713 Infer context enqueue buffer failed, nvinfer error:NVDSINFER_INVALID_PARAMS
0:00:02.361966066 1040 0x560f261dbaa0 WARN nvinfer gstnvinfer.cpp:1996:gst_nvinfer_process_tensor_input: error: Failed to queue input batch for inferencing
ERROR from element primary-nvinference-engine: Failed to queue input batch for inferencing
Error details: gstnvinfer.cpp(1996): gst_nvinfer_process_tensor_input (): /GstPipeline:preprocess-test-pipeline/GstNvInfer:primary-nvinference-engine
Returned, stopping playback
sequence_image_process.cpp:586, [INFO: CUSTOM_LIB] SequenceImagePreprocess is deinitializing
Deleting pipeline
root@f16b7b23bcad:/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-3d-action-recognition#

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 6.0

Could you double check according to ActionRecognitionNet — TAO Toolkit 3.21.11 documentation
DeepStream 3D Action Recognition App — DeepStream 6.0.1 Release documentation ?

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