Skip to content

Commit

Permalink
Replacing person-detection model
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Martinez <jose.antonio.martinez.torres@intel.com>
  • Loading branch information
antoniomtz committed Sep 10, 2024
1 parent 5807d30 commit e0374d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion download_models/downloadModels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ downloadTextRecognition() {
}

downloadPersonDetection() {
personDetection0106="person-detection-0106"
personDetection0106="person-detection-0200"
modelType="object_detection"
personjsonModelPath="$modelType/$personDetection0106/$modelPrecisionFP16INT8/$personDetection0106.bin"
echo $personjsonModelPath
Expand Down
4 changes: 2 additions & 2 deletions src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ elif grep -q "/dev" <<< "$INPUTSRC"; then
DECODE="$DECODE ! videoconvert ! video/x-raw,format=BGR"
# for http:// videos
elif grep -q "http" <<< "$INPUTSRC"; then
inputsrc="urisourcebin buffer-size=4096 uri=${$INPUTSRC}"
DECODE="! decodebin !"
inputsrc="urisourcebin buffer-size=4096 uri="$INPUTSRC
DECODE="decodebin"
else
# when using realsense camera, the dgpu.0 not working
# rs-serial realsenssrc
Expand Down
2 changes: 1 addition & 1 deletion src/pipelines/people_detection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fi
echo "decode type $DECODE"
echo "Run yolov5s pipeline on $DEVICE with batch size = $BATCH_SIZE"

gstLaunchCmd="GST_DEBUG=\"GST_TRACER:7\" GST_TRACERS=\"latency_tracer(flags=pipeline,interval=100)\" gst-launch-1.0 $inputsrc ! $DECODE ! gvaattachroi roi=$ROI ! gvadetect batch-size=$BATCH_SIZE model-instance-id=odmodel name=detection model=models/object_detection/person-detection-0106/FP16-INT8/person-detection-0106.xml threshold=.5 device=$DEVICE $PRE_PROCESS inference-region=1 ! $AGGREGATE gvametaconvert name=metaconvert add-empty-results=true ! gvametapublish name=destination file-format=2 file-path=/tmp/results/r$cid\"_gst\".jsonl $OUTPUT 2>&1 | tee >/tmp/results/gst-launch_$cid\"_gst\".log >(stdbuf -oL sed -n -e 's/^.*current: //p' | stdbuf -oL cut -d , -f 1 > /tmp/results/pipeline$cid\"_gst\".log)"
gstLaunchCmd="GST_DEBUG=\"GST_TRACER:7\" GST_TRACERS=\"latency_tracer(flags=pipeline,interval=100)\" gst-launch-1.0 $inputsrc ! $DECODE ! gvaattachroi roi=$ROI ! gvadetect batch-size=$BATCH_SIZE model-instance-id=odmodel name=detection model=models/object_detection/person-detection-0200/FP16-INT8/person-detection-0200.xml threshold=.5 device=$DEVICE $PRE_PROCESS inference-region=1 ! $AGGREGATE gvametaconvert name=metaconvert add-empty-results=true ! gvametapublish name=destination file-format=2 file-path=/tmp/results/r$cid\"_gst\".jsonl $OUTPUT 2>&1 | tee >/tmp/results/gst-launch_$cid\"_gst\".log >(stdbuf -oL sed -n -e 's/^.*current: //p' | stdbuf -oL cut -d , -f 1 > /tmp/results/pipeline$cid\"_gst\".log)"

echo "$gstLaunchCmd"

Expand Down

0 comments on commit e0374d5

Please sign in to comment.