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

delete phase3, reworked

Demo, only needs phase1 and phase2
benchmark noly needs phase1
debug only needs phase2
parent 9eccb014
FROM local/dockervino:phase3 as build
FROM local/dockervino:phase1 as build
ARG downloader=/opt/intel/openvino/deployment_tools/tools/model_downloader/downloader.py
ARG optimizer=/opt/intel/openvino/deployment_tools/model_optimizer/mo.py
......
......@@ -31,14 +31,6 @@ if [ "$device" == "CPU" ]; then
echo "Resnet 152"
$benchmark -d $device -i $input -api $api -m /root/openvino_models/ir/resnet/v1/152/FP32/resnet-152.xml
echo $stars
#echo "SSD 300"
#$benchmark -d $device -i $input -api $api -m /root/openvino_models/ir/ssd300/FP32/ssd300.xml
#echo $stars
#echo "YOLO V3"
#$benchmark -d $device -i $input -api $api -m /root/openvino_models/ir/yolo/v3/tf/FP32/yolo_v3.xml
#echo $stars
#echo "YOLO V3 Tiny"
#$benchmark -d $device -i $input -api $api -m /root/openvino_models/ir/yolo-tiny/v3/tf/FP32/yolo_v3_tiny.xml
else
echo $stars
echo "Inception V3"
......@@ -62,14 +54,6 @@ else
echo "Resnet 152"
$benchmark -d $device -i $input -api $api -m /root/openvino_models/ir/resnet/v1/152/FP16/resnet-152.xml
echo $stars
#echo "SSD 300"
#$benchmark -d $device -i $input -api $api -m /root/openvino_models/ir/ssd300/FP16/ssd300.xml
#echo $stars
#echo "YOLO V3"
#$benchmark -d $device -i $input -api $api -m /root/openvino_models/ir/yolo/v3/tf/FP16/yolo_v3_tiny.xml
#echo $stars
#echo "YOLO V3 Tiny"
#$benchmark -d $device -i $input -api $api -m /root/openvino_models/ir/yolo-tiny/v3/tf/FP16/yolo_v3_tiny.xml
fi
echo "Benchmarking done!"
......
# Debug Docker image after installation
# Image to debug on demo
FROM local/dockervino:phase3
# Image to debug on phase2
FROM local/dockervino:phase2 as phase2
FROM local/dockervino:phase1 as phase1
MAINTAINER jdg:juan-diego.gonzales-zuniga@kontron.com
# Copy models from phase2
COPY --from=phase2 /root/openvino_models/ir /root/openvino_models/ir
ARG INSTALL_DIR=/opt/intel/openvino
WORKDIR $INSTALL_DIR/deployment_tools
RUN apt install -y x11-utils vim strace wget libtool autoconf unzip
WORKDIR /tmp
RUN wget https://github.com/libusb/libusb/archive/v1.0.22.zip && \
......
FROM local/dockervino:phase3 as phase3
FROM local/dockervino:phase2 as phase2
FROM local/dockervino:phase1 as phase1
ARG INSTALL_DIR=/opt/intel/openvino
WORKDIR $INSTALL_DIR/deployment_tools
RUN rm -rf open_model_zoo
# clone forked branch
RUN git clone https://github.com/Ukhupacha/open_model_zoo.git && \
cd open_model_zoo && \
git checkout kontron
# build Inference Engine Samples
RUN $INSTALL_DIR/deployment_tools/inference_engine/samples/build_samples.sh
# build demo samples
RUN $INSTALL_DIR/deployment_tools/inference_engine/demos/build_demos.sh
RUN apt autoremove -y && rm -rf /var/lib/apt/lists/*
FROM scratch
COPY --from=phase3 / /
COPY --from=phase1 / /
COPY --from=phase2 /root/openvino_models/ir /root/openvino_models/ir
COPY ./entrypoint.sh /
CMD ["/bin/bash"]
# Compilation of examples for openVino
# Copy phase1, copy ir models from phase2, compile examples
FROM local/dockervino:phase2 as phase2
FROM local/dockervino:phase1 as phase1
MAINTAINER jdg:juan-diego.gonzales-zuniga@kontron.com
# Copy models from phase2
COPY --from=phase2 /root/openvino_models/ir /root/openvino_models/ir
ARG INSTALL_DIR=/opt/intel/openvino
WORKDIR $INSTALL_DIR/deployment_tools
RUN rm -rf open_model_zoo
# clone forked branch
RUN git clone https://github.com/Ukhupacha/open_model_zoo.git
# build Inference Engine Samples
RUN $INSTALL_DIR/deployment_tools/inference_engine/samples/build_samples.sh
# build demo samples
RUN $INSTALL_DIR/deployment_tools/inference_engine/demos/build_demos.sh
CMD ["/bin/bash"]
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase3 . #| tee openvinobuild.log
#!/bin/bash
myimage=local/dockervino:phase3
myname=dockervinoph3
set -x
docker run \
-d \
-ti \
--net=host \
--env="DISPLAY" \
--env="PS1=$myname> "\
--publish-all=true \
--hostname=$myname \
--name $myname \
--cidfile=/tmp/monitcont.id \
$myimage /bin/bash
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
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