How to add preprocessing between 2 secondary gie?

**• DeepStream Version-6.3
**• NVIDIA GPU Driver Version 535
I’m implementing a pipeline base on example deepstream-app structure as follows:
Primamy gie(object detect: person) → Secondary gie(face detection) → Secondary (face encoder)

I want to implement face alignment after detect face. I want add preprocessing between Secondary gie but i can’t. I debug and realize secondary_preprocess only create and link between primary gie and secondary gie in example.

Should I find a way to create preprocess between secondary? or do face alignment in nvinfer (have example available)?

The preprocess can work between two SGIEs if the SGIE before it is a detector.

Have you set “operate-on-gie-id” correctly?

There is also a sample of how to use nvdspreprocess before SGIE. deepstream_tao_apps/apps/tao_others/deepstream-pose-classification at master · NVIDIA-AI-IOT/deepstream_tao_apps (

i set it already to Secondary gie(face detection).
But in deepstream-app example, all secondary gies included in a bin, i can’t insert preprocessing between them. I try add the preprocessing element but it doesn’t have the config param to link the target secondary unique ID.

You need to modify deepstream-app. The source code is in /opt/nvidia/deepstream/deepstream/sources/apps/

Or you can write your own app to construct the pipeline you want.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.