Commit e8d87c64 authored by Juan Diego's avatar Juan Diego
Browse files

update demo scritps

parent 09df64da
......@@ -25,20 +25,26 @@ examples_dir=/root/omz_demos_build/intel64/Release
models_dir=/root/openvino_models/ir
# Input: IPCam or USBCam
input=/videos/test.mp4
# device: CPU or MYRIAD
# device: CPU, GPU or MYRIAD
device=CPU
app=${examples_dir}/interactive_face_detection_demo
##### CPU Face, Emotion, Age, Gender and Head Pose estimation #########
if [ "$device" == CPU ]; then
app=${examples_dir}/interactive_face_detection_demo
model=${models_dir}/intel/face-detection-retail-0004/FP32/face-detection-retail-0004.xml
agM=${models_dir}/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013.xml
emM=${models_dir}/intel/emotions-recognition-retail-0003/FP32/emotions-recognition-retail-0003.xml
hpM=${models_dir}/intel/head-pose-estimation-adas-0001/FP32/head-pose-estimation-adas-0001.xml
fi
##### GPU Face, Emotion, Age, Gender and Head Pose estimation #########
if [ "$device" == GPU ]; then
model=${models_dir}/intel/face-detection-retail-0004/FP16/face-detection-retail-0004.xml
agM=${models_dir}/intel/age-gender-recognition-retail-0013/FP16/age-gender-recognition-retail-0013.xml
emM=${models_dir}/intel/emotions-recognition-retail-0003/FP16/emotions-recognition-retail-0003.xml
hpM=${models_dir}/intel/head-pose-estimation-adas-0001/FP16/head-pose-estimation-adas-0001.xml
fi
###### NCS2 Face, Emotion, Age, Gender and Head Pose estimation #########
if [ "$device" == MYRIAD ]; then
app=${examples_dir}/interactive_face_detection_demo
model=${models_dir}/intel/face-detection-retail-0004/FP16/face-detection-retail-0004.xml
agM=${models_dir}/intel/age-gender-recognition-retail-0013/FP16/age-gender-recognition-retail-0013.xml
emM=${models_dir}/intel/emotions-recognition-retail-0003/FP16/emotions-recognition-retail-0003.xml
......@@ -53,7 +59,6 @@ docker run $opts \
-d \
-ti \
--mount type=bind,source="$(pwd)"/videos,target=/videos \
--privileged \
--net=host \
--env="setupvars=$setupvars" \
--env="DISPLAY=$display" \
......@@ -70,7 +75,7 @@ docker run $opts \
--env="emM=$emM" \
--env="hpM=$hpM" \
--device="/dev/video0:/dev/video0" \
--volume="/dev:/dev" \
--device="/dev/dri:/dev/dri" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix" \
--env="PS1=$myname> "\
--publish-all=true \
......
......@@ -25,21 +25,27 @@ examples_dir=/root/omz_demos_build/intel64/Release
models_dir=/root/openvino_models/ir
# Input: IPCam or USBCam
input=/videos/test.mp4
# device: CPU or MYRIAD
# device: CPU, GPU or MYRIAD
device=CPU
app=/opt/intel/openvino/deployment_tools/open_model_zoo/demos/human_pose_estimation_3d_demo/python/human_pose_estimation_3d_demo.py
######## CPU 3D Pose Estimation ###
######## CPU 3D Pose Estimation #####
if [ "$device" == CPU ]; then
app=/opt/intel/openvino/deployment_tools/open_model_zoo/demos/human_pose_estimation_3d_demo/python/human_pose_estimation_3d_demo.py
model=${models_dir}/public/human-pose-estimation-3d-0001/FP32/human-pose-estimation-3d-0001.xml
send=true
broker=kontron-lora.cloudapp.net
client=Demo
fi
####### GPU 3D Pose Estimation #####
if [ "$device" == GPU ]; then
model=${models_dir}/public/human-pose-estimation-3d-0001/FP16/human-pose-estimation-3d-0001.xml
#send=true
#broker=kontron-lora-cloudapp.net
#client=Demo
fi
###### NCS2 3D Pose Estimation #####
if [ "$device" == MYRIAD ]; then
app=/opt/intel/openvino/deployment_tools/open_model_zoo/demos/human_pose_estimation_3d_demo/python/human_pose_estimation_3d_demo.py
model=${models_dir}/public/human-pose-estimation-3d-0001/FP16/human-pose-estimation-3d-0001.xml
send=true
broker=kontron-lora.cloudapp.net
......@@ -54,7 +60,6 @@ docker run $opts \
-d \
-ti \
--mount type=bind,source="$(pwd)"/videos,target=/videos \
--privileged \
--net=host \
--env="setupvars=$setupvars" \
--env="DISPLAY=$display" \
......@@ -71,7 +76,7 @@ docker run $opts \
--env="emM=$emM" \
--env="hpM=$hpM" \
--device="/dev/video0:/dev/video0" \
--volume="/dev:/dev" \
--device="/dev/dri:/dev/dri" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix" \
--env="PS1=$myname> "\
--publish-all=true \
......
......@@ -25,14 +25,21 @@ examples_dir=/root/omz_demos_build/intel64/Release
models_dir=/root/openvino_models/ir
# Input: IPCam or USBCam
input=/videos/test.mp4
# device: CPU or MYRIAD
# device: CPU, GPU or MYRIAD
device=CPU
app=${examples_dir}/human_pose_estimation_demo
######## CPU Pose Estimation ###
if [ "$device" == CPU ]; then
app=${examples_dir}/human_pose_estimation_demo
model=${models_dir}/intel/human-pose-estimation-0001/FP32/human-pose-estimation-0001.xml
raw=true
send=true
broker=kontron-lora.cloudapp.net
client=Demo
fi
####### GPU Pose Estimation ####
if [ "$device" == GPU ]; then
model=${models_dir}/intel/human-pose-estimation-0001/FP16/human-pose-estimation-0001.xml
send=true
broker=kontron-lora.cloudapp.net
client=Demo
fi
......@@ -53,7 +60,6 @@ docker run $opts \
-d \
-ti \
--mount type=bind,source="$(pwd)"/videos,target=/videos \
--privileged \
--net=host \
--env="setupvars=$setupvars" \
--env="DISPLAY=$display" \
......@@ -70,7 +76,7 @@ docker run $opts \
--env="emM=$emM" \
--env="hpM=$hpM" \
--device="/dev/video0:/dev/video0" \
--volume="/dev:/dev" \
--device="/dev/dri:/dev/dri" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix" \
--env="PS1=$myname> "\
--publish-all=true \
......
......@@ -38,6 +38,13 @@ if [ "$device" == CPU ]; then
client=Demo
fi
###### Instance Segmentation GPU ######
if [ "$device" == GPU ]; then
model=${models_dir}/intel/instance-segmentation-security-0228/FP16/instance-segmentation-security-0228.xml
send=true
broker=kontron-lora.cloudapp.net
client=Demo
fi
###### Instance Segmentation MYRIAD #####
if [ "$device" == MYRIAD ]; then
model=${models_dir}/intel/instance-segmentation-security-0228/FP16/instance-segmentation-security-0228.xml
......@@ -54,7 +61,6 @@ docker run $opts \
-d \
-ti \
--mount type=bind,source="$(pwd)"/videos,target=/videos \
--privileged \
--net=host \
--env="setupvars=$setupvars" \
--env="labels_file=$labels_file" \
......@@ -72,7 +78,7 @@ docker run $opts \
--env="emM=$emM" \
--env="hpM=$hpM" \
--device="/dev/video0:/dev/video0" \
--volume="/dev:/dev" \
--device="/dev/dri:/dev/dri" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix" \
--env="PS1=$myname> "\
--publish-all=true \
......
......@@ -34,6 +34,10 @@ app=${examples_dir}/object_detection_demo
if [ "$device" == CPU ]; then
model=${models_dir}/public/ssd_mobilenet_v1_coco/FP32/ssd_mobilenet_v1_coco.xml
fi
###### GPU Object Detection ####
if [ "$device" == GPU ]; then
model=${models_dir}/public/ssd_mobilenet_v1_coco/FP16/ssd_mobilenet_v1_coco.xml
fi
###### NCS2 Object Detection ####
if [ "$device" == MYRIAD ]; then
model=${models_dir}/public/ssd_mobilenet_v1_coco/FP16/ssd_mobilenet_v1_coco.xml
......@@ -63,6 +67,7 @@ docker run $opts \
--env="agM=$agM" \
--env="emM=$emM" \
--env="hpM=$hpM" \
--device="/dev/video0:/dev/video0" \
--device="/dev/dri:/dev/dri" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix" \
--env="PS1=$myname> "\
......
......@@ -25,21 +25,28 @@ examples_dir=/root/omz_demos_build/intel64/Release
models_dir=/root/openvino_models/ir
# Input: IPCam or USBCam
input=/videos/test.mp4
# device: CPU or MYRIAD
# device: CPU, GPU or MYRIAD
device=CPU
app=${examples_dir}/pedestrian_tracker_demo
######## CPU Pedestrian Tracker ###
if [ "$device" == CPU ]; then
app=${examples_dir}/pedestrian_tracker_demo
m_det=${models_dir}/intel/person-detection-retail-0013/FP32/person-detection-retail-0013.xml
m_reid=${models_dir}/intel/person-reidentification-retail-0277/FP32/person-reidentification-retail-0277.xml
send=true
broker=kontron-lora.cloudapp.net
client=Demo
fi
######## GPU Pedestrian Tracker ####
if [ "$device" == GPU ]; then
m_det=${models_dir}/intel/person-detection-retail-0013/FP16/person-detection-retail-0013.xml
m_reid=${models_dir}/intel/person-reidentification-retail-0277/FP16/person-reidentification-retail-0277.xml
send=true
broker=kontron-lora.cloudapp.net
client=Demo
fi
###### NCS2 Pedestrian Tracker #####
if [ "$device" == MYRIAD ]; then
app=${examples_dir}/pedestrian_tracker_demo
m_det=${models_dir}/intel/person-detection-retail-0013/FP16/person-detection-retail-0013.xml
m_reid=${models_dir}/intel/person-reidentification-retail-0277/FP16/person-reidentification-retail-0277.xml
send=true
......@@ -55,7 +62,6 @@ docker run $opts \
-d \
-ti \
--mount type=bind,source="$(pwd)"/videos,target=/videos \
--privileged \
--net=host \
--env="setupvars=$setupvars" \
--env="DISPLAY=$display" \
......@@ -72,7 +78,7 @@ docker run $opts \
--env="emM=$emM" \
--env="hpM=$hpM" \
--device="/dev/video0:/dev/video0" \
--volume="/dev:/dev" \
--device="/dev/dri:/dev/dri" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix" \
--env="PS1=$myname> "\
--publish-all=true \
......
......@@ -25,7 +25,7 @@ examples_dir=/root/omz_demos_build/intel64/Release
models_dir=/root/openvino_models/ir
# Input: IPCam or USBCam
input=/videos/test.mp4
# device: CPU or MYRIAD
# device: CPU, GPU or MYRIAD
device=CPU
detection=yolo
app=${examples_dir}/object_detection_demo
......@@ -34,6 +34,10 @@ app=${examples_dir}/object_detection_demo
if [ "$device" == CPU ]; then
model=${models_dir}/public/yolo-v3-tiny-tf/FP32/yolo-v3-tiny-tf.xml
fi
###### GPU Object Detection ###
if [ "$device" == GPU ]; then
model=${models_dir}/public/yolo-v3-tiny-tf/FP16/yolo-v3-tiny-tf.xml
fi
###### NCS2 Object Detection ####
if [ "$device" == MYRIAD ]; then
model=${models_dir}/public/yolo-v3-tiny-tf/FP16/yolo-v3-tiny-tf.xml
......@@ -63,6 +67,7 @@ docker run $opts \
--env="agM=$agM" \
--env="emM=$emM" \
--env="hpM=$hpM" \
--device="/dev/video0:/dev/video0" \
--device="/dev/dri:/dev/dri" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix" \
--env="PS1=$myname> "\
......
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