Commit c000d718 authored by GONZALES ZUNIGA Juan Diego's avatar GONZALES ZUNIGA Juan Diego
Browse files

fix entrypoint on demo

standard launch demo and debug
parent 4099df97
......@@ -24,7 +24,7 @@ setupvars=/opt/intel/openvino/bin/setupvars.sh
examples_dir=/root/omz_demos_build/intel64/Release
models_dir=/root/openvino_models/ir
# Input: IPCam or USBCam
input=https://motchallenge.net/movies/ETH-Bahnhof.mp4 #input=http://94.214.173.241:8001/mjpg/video.mjpg
input=https://motchallenge.net/movies/ETH-Bahnhof.mp4
#################################
######## Examples ###########
......@@ -34,15 +34,20 @@ input=https://motchallenge.net/movies/ETH-Bahnhof.mp4 #input=http:
device=CPU
app=${examples_dir}/human_pose_estimation_demo
model=${models_dir}/intel/human-pose-estimation-0001/FP32/human-pose-estimation-0001.xml
raw=true
broker=kontron-lora.cloudapp.net
client=Demo
###### NCS2 Pose Estimation ######
#device=MYRIAD
#app=${examples_dir}/human_pose_estimation_demo
#model=${models_dir}/intel/human-pose-estimation-0001/FP16/human-pose-estimation-0001.xml
opts="--cap-add SYS_PTRACE"
# Running the container
set -x
docker run \
docker run $opts \
-d \
-ti \
--mount type=bind,source="$(pwd)"/../../open_model_zoo,target=/opt/intel/openvino/deployment_tools/open_model_zoo \
......@@ -55,6 +60,9 @@ docker run \
--env="device=$device" \
--env="app=$app" \
--env="model=$model" \
--env="broker=$broker" \
--env="client=$client" \
--env="raw=$raw" \
--env="agM=$agM" \
--env="emM=$emM" \
--env="hpM=$hpM" \
......@@ -66,8 +74,9 @@ docker run \
--hostname=$myname \
--name $myname \
--cidfile=/tmp/monitcont.id \
$myimage /bin/bash
$myimage /bin/sh
contid=$(cat /tmp/monitcont.id; rm -f /tmp/monitcont.id)
set +x
$debug docker logs $contid
$debug docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -> {{(index $conf 0).HostPort}} {{end}}' $1 $contid
set +x
......@@ -16,6 +16,11 @@ if [ "$app" = "/root/omz_demos_build/intel64/Release/interactive_face_detection_
-d_ag $device -m_ag $agM \
-d_em $device -m_em $emM \
-d_hp $device -m_hp $hpM
fi
if [ "$app" = "/root/omz_demos_build/intel64/Release/human_pose_estimation_demo" ]; then
$app -i $input -d $device -m $model -r $raw -broker $broker -client $client
else
$app -i $input -d $device -m $model
fi
......@@ -24,20 +24,26 @@ setupvars=/opt/intel/openvino/bin/setupvars.sh
examples_dir=/root/omz_demos_build/intel64/Release
models_dir=/root/openvino_models/ir
# Input: IPCam or USBCam
input=https://motchallenge.net/movies/ETH-Bahnhof.mp4
input=https://motchallenge.net/movies/ETH-Bahnhof.mp4
#################################
######## Examples ###########
#################################
###### CPU Object Detection ########
####### CPU Pose Estimation ########
device=CPU
app=${examples_dir}/human_pose_estimation_demo
model=${models_dir}/intel/human-pose-estimation-0001/FP32/human-pose-estimation-0001.xml
raw=true
broker=kontron-lora.cloudapp.net
client=Demo
###### NCS2 Pose Estimation ######
#device=MYRIAD
#app=${examples_dir}/human_pose_estimation_demo
#model=${models_dir}/intel/human-pose-estimation-0001/FP16/human-pose-estimation-0001.xml
# Input and Log options
opts="--entrypoint=/entrypoint.sh"
#opts="-ti --cap-add SYS_PTRACE"
# Running the container
set -x
......@@ -52,6 +58,9 @@ docker run $opts \
--env="device=$device" \
--env="app=$app" \
--env="model=$model" \
--env="broker=$broker" \
--env="client=$client" \
--env="raw=$raw" \
--env="agM=$agM" \
--env="emM=$emM" \
--env="hpM=$hpM" \
......@@ -64,7 +73,7 @@ docker run $opts \
--entrypoint /entrypoint.sh \
--name $myname \
--cidfile=/tmp/monitcont.id \
$myimage /bin/sh
$myimage /bin/sh
contid=$(cat /tmp/monitcont.id; rm -f /tmp/monitcont.id)
set +x
$debug docker logs $contid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment