Skip to content

Commit

Permalink
feat: Add latency tracer to the GStreamer pipeline for better perform…
Browse files Browse the repository at this point in the history
…ance measurement (intel-retail#351)

Signed-off-by: Brian McGinn <[email protected]>
  • Loading branch information
brian-intel authored Nov 14, 2023
1 parent 958c93f commit ab90cfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.dlstreamer
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

#FROM intel/dlstreamer:2022.2.0-ubuntu20-gpu815 as base
FROM intel/dlstreamer:2022.3.0-ubuntu22-gpu555 as base
FROM intel/dlstreamer:2023.0.0-ubuntu22-gpu682-dpcpp as base
USER root

FROM base as build-default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AGGREGATE="${AGGREGATE:="gvametaaggregate name=aggregate !"}" # Aggregate functi
OUTPUTFORMAT="${OUTPUTFORMAT:="! fpsdisplaysink video-sink=fakesink sync=true --verbose"}" # Output format for the pipeline "! fpsdisplaysink video-sink=fakesink sync=true --verbose" | (render_mode)"! videoconvert ! video/x-raw,format=I420 ! gvawatermark ! videoconvert ! fpsdisplaysink video-sink=ximagesink sync=true --verbose"

echo "Run yolov5s pipeline"
gstLaunchCmd="gst-launch-1.0 $inputsrc ! $DECODE ! gvadetect model-instance-id=odmodel name=detection model=models/yolov5s/FP32-INT8/1/yolov5s.xml model-proc=models/yolov5s/FP32-INT8/1/yolov5s.json threshold=.5 device=$DEVICE $PRE_PROCESS ! $AGGREGATE gvametaconvert name=metaconvert add-empty-results=true ! gvametapublish name=destination file-format=2 file-path=/tmp/results/r$cid_count.jsonl $OUTPUTFORMAT 2>&1 | tee >/tmp/results/gst-launch_$cid_count.log >(stdbuf -oL sed -n -e 's/^.*current: //p' | stdbuf -oL cut -d , -f 1 > /tmp/results/pipeline$cid_count.log)"
gstLaunchCmd="GST_DEBUG=\"GST_TRACER:7\" GST_TRACERS=\"latency_tracer(flags=pipeline,interval=100)\" gst-launch-1.0 $inputsrc ! $DECODE ! gvadetect model-instance-id=odmodel name=detection model=models/yolov5s/FP32-INT8/1/yolov5s.xml model-proc=models/yolov5s/FP32-INT8/1/yolov5s.json threshold=.5 device=$DEVICE $PRE_PROCESS ! $AGGREGATE gvametaconvert name=metaconvert add-empty-results=true ! gvametapublish name=destination file-format=2 file-path=/tmp/results/r$cid_count.jsonl $OUTPUTFORMAT 2>&1 | tee >/tmp/results/gst-launch_$cid_count.log >(stdbuf -oL sed -n -e 's/^.*current: //p' | stdbuf -oL cut -d , -f 1 > /tmp/results/pipeline$cid_count.log)"

echo "$gstLaunchCmd"

Expand Down

0 comments on commit ab90cfb

Please sign in to comment.