# Issue with Converting ONNX Model with different dimensions to TensorRT Engine for DeepStream

**URL:** <https://forums.developer.nvidia.com/t/issue-with-converting-onnx-model-with-different-dimensions-to-tensorrt-engine-for-deepstream/328543>\
**Category:** DeepStream SDK\
**Tags:** deepstream\
**Created:** [March 27, 2025, 7:15pm UTC](https://forums.developer.nvidia.com/t/issue-with-converting-onnx-model-with-different-dimensions-to-tensorrt-engine-for-deepstream/328543 "2025-03-27T19:15:37Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![junshengy](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/junshengy/32/251332_2.png) [@junshengy](https://forums.developer.nvidia.com/u/junshengy)\
**Post date:** [April 10, 2025, 2:24am UTC](https://forums.developer.nvidia.com/t/issue-with-converting-onnx-model-with-different-dimensions-to-tensorrt-engine-for-deepstream/328543/12 "2025-04-10T02:24:57Z")

</div>

> [@hema.ganaparthi](#):
>
> I observe a latency between the OSD display and the processing. Specifically, after processing four frames,

This is usually not related to OSD, but is usually caused by RTSP camera. You also need to check the timing of nvinfer and the GPU load.

You can use local file to measure latency. Refer to this FAQ

> [@DeepStream SDK FAQ](https://forums.developer.nvidia.com/t/deepstream-sdk-faq/80236/12):
>
> 7. [DS 5.0GA\_All\_App] Enable Latency measurement for deepstream sample apps If you are using deepstream-app, to check the component latency directly, you need to set the env export NVDS\_ENABLE\_COMPONENT\_LATENCY\_MEASUREMENT=1 export NVDS\_ENABLE\_LATENCY\_MEASUREMENT=1 If you are using other deepstream sample apps such as deepstream-test3, you need to apply the following patch and set the env export NVDS\_ENABLE\_COMPONENT\_LATENCY\_MEASUREMENT=1 export NVDS\_ENABLE\_LATENCY\_MEASUREMENT=1 …

> [@hema.ganaparthi](#):
>
> Because, it is not acceptable to detect the object after a 1-2 seconds delay while it is standing in front of the camera.

The latency of rtsp camera is usually 1-2s. Lower latency requires smaller I frame intervals and UDP transmission, which requires high network quality, otherwise it will cause packet loss, screen distortion and other problems.

In addition, if you only use `gst-play-1.0` to play the rtsp stream, what is the latency?

Try setting the value of the live-source property of nvstreammux to true.

We have discussed too many topics in this topic. Please open a new topic for other questions.

---

_[View the full topic](https://forums.developer.nvidia.com/t/issue-with-converting-onnx-model-with-different-dimensions-to-tensorrt-engine-for-deepstream/328543)._
