Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GONZALES ZUNIGA Juan Diego
dockervino
Commits
c000d718
Commit
c000d718
authored
Dec 03, 2019
by
GONZALES ZUNIGA Juan Diego
Browse files
fix entrypoint on demo
standard launch demo and debug
parent
4099df97
Changes
3
Hide whitespace changes
Inline
Side-by-side
debug/runcmd
View file @
c000d718
...
...
@@ -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/
ba
sh
$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
demo/entrypoint.sh
View file @
c000d718
...
...
@@ -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
demo/runcmd
View file @
c000d718
...
...
@@ -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 Detec
tion ########
######
#
CPU
Pose Estima
tion ########
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment