Can we set config parameter in python file?

Please provide complete information as applicable to your setup.

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

In deepstream config.txt file there is the parameter infer-dims
I would like to use the infer-dims in the python file, so we can control from outside.
Is there a way we can set the infer-dims (somehow inject) from the python file instead of using it within the config text file?

infer-dims is a config item in config file, it’s parsed in gst-nvinfer after it gets the config file of gst-nvinfer, so it does not support to set outside of gst-nvinfer.
But, as WAR, you can edit the content of the config file to modify infer-dims in python script before call “gie.set_property(‘config-file-path’,…)” to pass the config file to nvinfer plugin

@mchi What do you mean by WAR?

WAR = work around