• Hardware Platform: GPU
• DeepStream Version: 5.0.0
• TensorRT Version: 7.0.0.11
• NVIDIA GPU Driver Version (valid for GPU only): 460.32.03
I want to setup a pipeline including PGIE and SGIE. PGIE is a detector which outputs bboxes which I parse and everything gets displayed correctly. I’m now trying to add a SGIE which is another detector which I want to detect features on each of the parsed bounding boxes. Now I would like to
a) create bounding boxes out of SGIEs output and have them drawn in OSD
as well as
b) eventually add a 2nd SGIE which operates on PGIE but the data fed into SGIE2 is manipulated according to SGIE1s output
I’m using the stock deepstream-app from the SDK and so far just edited the respective config files like this:
[primary-gie]
enable=1
gpu-id=0
batch-size=1
gie-unique-id=1
interval=0
config-file=config_infer_primary_ssd_custom.txt
nvbuf-memory-type=0
[secondary-gie0]
enable=1
gpu-id=0
batch-size=1
interval=0
gie-unique-id=2
operate-on-gie-id=1
config-file=config_infer_secondary_landmark.txt
nvbuf-memory-type=0
where config_infer_secondary_landmark.txt
is this
[property]
gpu-id=0
net-scale-factor=1
onnx-file=/opt/models/lmd192.onnx
batch-size=1
# Integer 1=Primary 2=Secondary
process-mode=2
gie-unique-id=2
operate-on-gie-id=1
#nw mode 0: FP32, 1: INT8, 2: FP16
network-mode=0
#nw type Integer 0: Detector 1: Classifier 2: Segmentation 3: Instance Segmentation 100=Other
network-type=0
# Integer 0: OpenCV groupRectangles() 1: DBSCAN 2: Non Maximum Suppression 3: DBSCAN + NMS Hybrid 4:No clustering
cluster-mode=2
# Binding dimensions to set on the image input layer.
# infer-dims=3;192;192
infer-dims=1;192;192
parse-bbox-func-name=NvDsInferParseLandmarks
custom-lib-path=nvdsinfer_landmark_parser/libnvdsinfer_landmark_parser.so
# Color format required by the model Integer 0: RGB 1: BGR 2: GRAY
model-color-format=2
num-detected-classes=2
# Gst-nvinfer attaches raw tensor output as Gst Buffer metadata.
#output-tensor-meta=1
There are some questions:
- Why is
outputLayersInfo
inNvDsInferParseLandmarks
always empty? - Is
network-type=0
right or should it be100
? What is this 100? - Do I need the
num-detected-classes=2
-
infer-dims=1;192;192
resizes the crops from PGIE to this format before being fed into SGIE right? -
NvDsInferParseLandmarks
is called for each individual bbox found in PGIE?