Deepstream 5.0 - Error explicit config dims is invalid

Setup Information:
• Hardware Platform: GPU
• DeepStream Version: 5.0
• TensorRT Version: 7
• NVIDIA GPU Driver Version: 440

Hello
I was trying to run my model on Deepstrem snd got this error:

 *** DeepStream: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***

ERROR: ../nvdsinfer/nvdsinfer_model_builder.cpp:1408 Deserialize engine failed because file path: /home/nujood/Desktop/Deep-Stream-ONNX-edit/config/../model.onnx_b1_fp16.engine open error
0:00:00.280190455 13197 0x564ecd5e9350 WARN                 nvinfer gstnvinfer.cpp:599:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1566> [UID = 1]: deserialize engine from file :/home/nujood/Desktop/Deep-Stream-ONNX-edit/config/../model.onnx_b1_fp16.engine failed
0:00:00.280214476 13197 0x564ecd5e9350 WARN                 nvinfer gstnvinfer.cpp:599:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1673> [UID = 1]: deserialize backend context from engine from file :/home/nujood/Desktop/Deep-Stream-ONNX-edit/config/../model.onnx_b1_fp16.engine failed, try rebuild
0:00:00.280222280 13197 0x564ecd5e9350 INFO                 nvinfer gstnvinfer.cpp:602:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1591> [UID = 1]: Trying to create engine from model files
----------------------------------------------------------------
Input filename:   /home/nujood/Desktop/Deep-Stream-ONNX-edit/model.onnx
ONNX IR version:  0.0.7
Opset version:    12
Producer name:    keras2onnx
Producer version: 1.7.0
Domain:           onnxmltools
Model version:    0
Doc string:       
----------------------------------------------------------------
ERROR: ../nvdsinfer/nvdsinfer_func_utils.cpp:31 [TRT]: Parameter check failed at: optimizationProfile.cpp::setDimensions::119, condition: std::all_of(dims.d, dims.d + dims.nbDims, [](int x) { return x > 0; })
ERROR: ../nvdsinfer/nvdsinfer_func_utils.cpp:31 [TRT]: Parameter check failed at: optimizationProfile.cpp::setDimensions::119, condition: std::all_of(dims.d, dims.d + dims.nbDims, [](int x) { return x > 0; })
ERROR: ../nvdsinfer/nvdsinfer_func_utils.cpp:31 [TRT]: Parameter check failed at: optimizationProfile.cpp::setDimensions::119, condition: std::all_of(dims.d, dims.d + dims.nbDims, [](int x) { return x > 0; })
ERROR: ../nvdsinfer/nvdsinfer_model_builder.cpp:1351 Explicit config dims is invalid
ERROR: ../nvdsinfer/nvdsinfer_model_builder.cpp:1087 Failed to configure builder options
ERROR: ../nvdsinfer/nvdsinfer_model_builder.cpp:884 failed to build trt engine.
0:00:00.367899877 13197 0x564ecd5e9350 ERROR                nvinfer gstnvinfer.cpp:596:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1611> [UID = 1]: build engine file failed
0:00:00.369274857 13197 0x564ecd5e9350 ERROR                nvinfer gstnvinfer.cpp:596:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1697> [UID = 1]: build backend context failed
0:00:00.369283422 13197 0x564ecd5e9350 ERROR                nvinfer gstnvinfer.cpp:596:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1024> [UID = 1]: generate backend failed, check config file settings
0:00:00.369458498 13197 0x564ecd5e9350 WARN                 nvinfer gstnvinfer.cpp:781:gst_nvinfer_start:<primary_gie> error: Failed to create NvDsInferContext instance
0:00:00.369463811 13197 0x564ecd5e9350 WARN                 nvinfer gstnvinfer.cpp:781:gst_nvinfer_start:<primary_gie> error: Config file path: /home/nujood/Desktop/Deep-Stream-ONNX-edit/config/config_infer_custom_yolo.txt, NvDsInfer Error: NVDSINFER_CONFIG_FAILED
** ERROR: <main:651>: Failed to set pipeline to PAUSED
Quitting
ERROR from primary_gie: Failed to create NvDsInferContext instance

thanks in advance.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

@nujjod
Simply logs don’t tell us much about your problems.
Could you please share us your model and configurations so that we can reproduce it.
Or just send us the pack of your working directory.