Set net-scale-factor and offsets directly in the test-app

How can I add net-scale-factor and offsets directly in the test-apps? I do not want to add them in the config. Upon using pgie.set_property(“net-scale-factor”, 0.0039) I get the following error:

pgie_net_scale_factor = pgie.set_property(“net-scale-factor”, 0.0039)
TypeError: object of type GstNvInfer' does not have property net-scale-factor’

It seems I cannot set property in this way. Is there another way to add it directly in the test-app after initialising pgie?

Why is that?

Yeah, it’s expected since it’s not a gstreamer plugin property.