Attention une mise à jour du service Gitlab va être effectuée le mardi 14 décembre entre 13h30 et 14h00. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes.

Commit 9bbe19da authored by Juan Diego Gonzales Zuniga's avatar Juan Diego Gonzales Zuniga
Browse files

update demo

parent ae24e4cf
FROM local/dockervino:phase2 as phase2
FROM local/dockervino:phase1 as phase1
WORKDIR ${INTEL_OPENVINO_DIR}/deployment_tools
RUN apt install -y libmosquittopp-dev git && \
rm -rf open_model_zoo && \
pip3 install paho-mqtt scipy && \
export ngraph_DIR=/opt/intel/openvino/deployment_tools/ngraph/cmake && \
git clone https://github.com/Ukhupacha/open_model_zoo.git --branch kontron --depth 1 && \
git clone https://github.com/Ukhupacha/open_model_zoo.git --branch devkontron --depth 1 && \
${INTEL_OPENVINO_DIR}/deployment_tools/inference_engine/demos/build_demos.sh -DENABLE_PYTHON=on && \
apt autoremove -y && rm -rf /var/lib/apt/lists/*
FROM scratch
COPY --from=phase1 / /
COPY --from=phase2 /root/openvino_models/ir /root/openvino_models/ir
COPY ./entrypoint.sh /
CMD ["/bin/bash"]
......@@ -17,17 +17,14 @@ if [ "$app" = "/root/omz_demos_build/intel64/Release/interactive_face_detection_
-d_em $device -m_em $emM \
-d_hp $device -m_hp $hpM
elif [ "$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
$app -i $input -at openpose -d $device -m $model -send $send -broker $broker -client $client
elif [ "$app" = "/root/omz_demos_build/intel64/Release/pedestrian_tracker_demo" ]; then
$app -i $input -d_det $device -d_reid $device -m_det $m_det -m_reid $m_reid -r $raw -broker $broker -client $client
$app -i $input -d_det $device -d_reid $device -m_det $m_det -m_reid $m_reid -send $send -broker $broker -client $client
elif [ "$app" = "/opt/intel/openvino/deployment_tools/open_model_zoo/demos/python_demos/human_pose_estimation_3d_demo/human_pose_estimation_3d_demo.py" ]; then
if [ "$input" = "cam" ]; then
export input=0
fi
if [ "$raw" = "true" ]; then
python3 $app -i $input -d $device -m $model --client $client --broker $broker
if [ "$send" = "true" ]; then
python3 $app -i $input -d $device -m $model --send --client $client --broker $broker
else
python3 $app -i $input -d $device -m $model --no_send
python3 $app -i $input -d $device -m $model
fi
else
......
......@@ -30,18 +30,18 @@ device=CPU
######## CPU 3D Pose Estimation ###
if [ "$device" == CPU ]; then
app=/opt/intel/openvino/deployment_tools/open_model_zoo/demos/python_demos/human_pose_estimation_3d_demo/human_pose_estimation_3d_demo.py
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
raw=true
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/python_demos/human_pose_estimation_3d_demo/human_pose_estimation_3d_demo.py
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
raw=true
send=true
broker=kontron-lora.cloudapp.net
client=Demo
fi
......@@ -66,7 +66,7 @@ docker run $opts \
--env="m_reid=$m_reid" \
--env="broker=$broker" \
--env="client=$client" \
--env="raw=$raw" \
--env="send=$send" \
--env="agM=$agM" \
--env="emM=$emM" \
--env="hpM=$hpM" \
......
......@@ -40,7 +40,7 @@ fi
if [ "$device" == MYRIAD ]; then
app=${examples_dir}/human_pose_estimation_demo
model=${models_dir}/intel/human-pose-estimation-0001/FP16/human-pose-estimation-0001.xml
raw=true
send=true
broker=kontron-lora.cloudapp.net
client=Demo
fi
......@@ -65,7 +65,7 @@ docker run $opts \
--env="m_reid=$m_reid" \
--env="broker=$broker" \
--env="client=$client" \
--env="raw=$raw" \
--env="send=$send" \
--env="agM=$agM" \
--env="emM=$emM" \
--env="hpM=$hpM" \
......
......@@ -26,14 +26,14 @@ models_dir=/root/openvino_models/ir
# Input: IPCam or USBCam
input=/videos/test.mp4
# device: CPU or MYRIAD
device=MYRIAD
device=CPU
######## 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
raw=true
send=true
broker=kontron-lora.cloudapp.net
client=Demo
fi
......@@ -42,7 +42,7 @@ 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
raw=true
send=true
broker=kontron-lora.cloudapp.net
client=Demo
fi
......@@ -67,7 +67,7 @@ docker run $opts \
--env="m_reid=$m_reid" \
--env="broker=$broker" \
--env="client=$client" \
--env="raw=$raw" \
--env="send=$send" \
--env="agM=$agM" \
--env="emM=$emM" \
--env="hpM=$hpM" \
......
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