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)
I’m using the pgie-sgie detection network in deepstream. Basically, the pgie reads in the image and do the primary detection, and then passes the cropped image to sgie to continue the detection based on the pgie’s output.
My problem is how can I do the preprocessing before the sgie after pgie. I need to transpose the input image before the sgie network, but default preprocessing functions only include normalization and subtraction.
I checked the code do the normalization in “nvdsinfer_context_impl.cpp”, it processes on the first layer of the network. But I need to do the transpose on the input image before the image been resized to the network input size.
Any help would be appreciated, thanks.