diff --git a/download_models/downloadModels.sh b/download_models/downloadModels.sh index affedca..ae46f82 100755 --- a/download_models/downloadModels.sh +++ b/download_models/downloadModels.sh @@ -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 diff --git a/src/entrypoint.sh b/src/entrypoint.sh index 83d8ac9..6f8dca7 100755 --- a/src/entrypoint.sh +++ b/src/entrypoint.sh @@ -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 diff --git a/src/pipelines/people_detection.sh b/src/pipelines/people_detection.sh index d38a476..0e3d4c3 100755 --- a/src/pipelines/people_detection.sh +++ b/src/pipelines/people_detection.sh @@ -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"