How to custom or preprocessing input data in deepstream

Hi, I’m using deepstream python for retinaface models link. But I don’t know where i can get and customs data before inference that.
Thank u!

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

What custom data do you mean?

• Hardware Platform: Tesla T4
• DeepStream Version : 5.1
• TensorRT Version :
• NVIDIA GPU Driver Version: 460.32.03
• Issue Type: Questions
I mean, i want to preprocess input data ( scale, transpose,…). I need input some things like that!
img -= (104, 117, 123) img = img.transpose(2, 0, 1)

I found Offsets property in gst-nvinfer I solved problem

Great work.