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

Update R3.376

Update to run with R3.376, path dir update and images name update
parent 016da2aa
FROM local/dockervino:demo_R2 as build
FROM local/dockervino:demo_R3 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
WORKDIR /root/openvino_models
RUN python3 $downloader --name googlenet-v3 --output_dir /root/openvino_models
RUN python3 $optimizer --input_model ./classification/googlenet/v3/tf/inception_v3_2016_08_28_frozen.pb --output_dir ./ir/googlenet/v3/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./classification/googlenet/v3/tf/inception_v3_2016_08_28_frozen.pb --output_dir ./ir/googlenet/v3/FP16 --data_type FP16
RUN python3 $optimizer --input_model ./public/googlenet-v3/inception_v3_2016_08_28_frozen.pb --output_dir ./ir/googlenet/v3/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./public/googlenet-v3/inception_v3_2016_08_28_frozen.pb --output_dir ./ir/googlenet/v3/FP16 --data_type FP16
RUN python3 $downloader --name googlenet-v4 --output_dir /root/openvino_models
RUN python3 $optimizer --input_model ./classification/googlenet/v4/caffe/googlenet-v4.caffemodel --output_dir ./ir/googlenet/v4/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./classification/googlenet/v4/caffe/googlenet-v4.caffemodel --output_dir ./ir/googlenet/v4/FP16 --data_type FP16
RUN python3 $optimizer --input_model ./public/googlenet-v4/googlenet-v4.caffemodel --output_dir ./ir/googlenet/v4/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./public/googlenet-v4/googlenet-v4.caffemodel --output_dir ./ir/googlenet/v4/FP16 --data_type FP16
RUN python3 $downloader --name vgg16 --output_dir /root/openvino_models
RUN python3 $optimizer --input_model ./classification/vgg/16/caffe/vgg16.caffemodel --output_dir ./ir/vgg/16/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./classification/vgg/16/caffe/vgg16.caffemodel --output_dir ./ir/vgg/16/FP16 --data_type FP16
RUN python3 $optimizer --input_model ./public/vgg16/vgg16.caffemodel --output_dir ./ir/vgg/16/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./public/vgg16/vgg16.caffemodel --output_dir ./ir/vgg/16/FP16 --data_type FP16
RUN python3 $downloader --name vgg19 --output_dir /root/openvino_models
RUN python3 $optimizer --input_model ./classification/vgg/19/caffe/vgg19.caffemodel --output_dir ./ir/vgg/19/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./classification/vgg/19/caffe/vgg19.caffemodel --output_dir ./ir/vgg/19/FP16 --data_type FP16
RUN python3 $optimizer --input_model ./public/vgg19/vgg19.caffemodel --output_dir ./ir/vgg/19/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./public/vgg19/vgg19.caffemodel --output_dir ./ir/vgg/19/FP16 --data_type FP16
RUN python3 $downloader --name resnet-50 --output_dir /root/openvino_models
RUN python3 $optimizer --input_model ./classification/resnet/v1/50/caffe/resnet-50.caffemodel --output_dir ./ir/resnet/v1/50/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./classification/resnet/v1/50/caffe/resnet-50.caffemodel --output_dir ./ir/resnet/v1/50/FP16 --data_type FP16
RUN python3 $optimizer --input_model ./public/resnet-50/resnet-50.caffemodel --output_dir ./ir/resnet/v1/50/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./public/resnet-50/resnet-50.caffemodel --output_dir ./ir/resnet/v1/50/FP16 --data_type FP16
RUN python3 $downloader --name resnet-101 --output_dir /root/openvino_models
RUN python3 $optimizer --input_model ./classification/resnet/v1/101/caffe/resnet-101.caffemodel --output_dir ./ir/resnet/v1/101/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./classification/resnet/v1/101/caffe/resnet-101.caffemodel --output_dir ./ir/resnet/v1/101/FP16 --data_type FP16
RUN python3 $optimizer --input_model ./public/resnet-101/resnet-101.caffemodel --output_dir ./ir/resnet/v1/101/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./public/resnet-101/resnet-101.caffemodel --output_dir ./ir/resnet/v1/101/FP16 --data_type FP16
RUN python3 $downloader --name resnet-152 --output_dir /root/openvino_models
RUN python3 $optimizer --input_model ./classification/resnet/v1/152/caffe/resnet-152.caffemodel --output_dir ./ir/resnet/v1/152/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./classification/resnet/v1/152/caffe/resnet-152.caffemodel --output_dir ./ir/resnet/v1/152/FP16 --data_type FP16
RUN python3 $optimizer --input_model ./public/resnet-152/resnet-152.caffemodel --output_dir ./ir/resnet/v1/152/FP32 --data_type FP32
RUN python3 $optimizer --input_model ./public/resnet-152/resnet-152.caffemodel --output_dir ./ir/resnet/v1/152/FP16 --data_type FP16
COPY ./entrypoint.sh /
CMD ["/bin/bash"]
# @(#) run with coherent naming
docker build --tag=local/dockervino:benchmark_R2 . #| tee openvinobuild.log
docker build --tag=local/dockervino:benchmark_R3 . #| tee openvinobuild.log
myimage=local/dockervino:benchmark_R2
#!/bin/bash
myimage=local/dockervino:benchmark_R3
myname=benchmark
###### Settings ########
......@@ -17,9 +17,6 @@ docker run \
--env="device=$device" \
--env="api=$api" \
--env="setupvars=$setupvars" \
--volume="$HOME/.Xauthority:/root/.Xauthority:rw" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix" \
--device="/dev/video0:/dev/video0" \
--volume="/dev:/dev" \
--cap-add SYS_PTRACE \
--env="PS1=$myname> "\
......
# Debug Docker image after installation
# Image to debug on demo
FROM local/dockervino:demo_R2
FROM local/dockervino:demo_R3
MAINTAINER jdg:juan-diego.gonzales-zuniga@kontron.com
RUN apt install -y x11-utils vim strace wget libtool autoconf unzip
......
# @(#) run with coherent naming
docker build --tag=local/dockervino:debug_R2 . #| tee openvinobuild.log
docker build --tag=local/dockervino:debug_R3 . #| tee openvinobuild.log
#!/bin/bash
myimage=local/dockervino:debug_R2
myimage=local/dockervino:debug_R3
myname=debug
#################################
......
FROM local/dockervino:phase2_R2 as phase2
FROM local/dockervino:phase3_R2 as phase3
FROM local/dockervino:phase2_R3 as phase2
FROM local/dockervino:phase3_R3 as phase3
FROM scratch
COPY --from=phase2 / /
COPY --from=phase3 /root/openvino_models/ir /root/openvino_models/ir
......
# @(#) run with coherent naming
docker build --tag=local/dockervino:demo_R2 . #| tee openvinobuild.log
docker build --tag=local/dockervino:demo_R3 . #| tee openvinobuild.log
#!/bin/bash
myimage=local/dockervino:demo_R2
myimage=local/dockervino:demo_R3
myname=dockervinodemo
#################################
......
......@@ -4,7 +4,7 @@
FROM ubuntu:xenial
MAINTAINER jdg:juan-diego.gonzales-zuniga@kontron.com
ARG openvinoTar=l_openvino_toolkit_p_2019.2.242
ARG openvinoTar=l_openvino_toolkit_p_2019.3.376
ARG INSTALL_DIR=/opt/intel/openvino
ARG TEMP_DIR=/tmp/openvino_installer
RUN mkdir -p $TEMP_DIR
......
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase1_R2 . #| tee openvinobuild.log
docker build --tag=local/dockervino:phase1_R3 . #| tee openvinobuild.log
myimage=local/dockervino:phase1_R2
#!/bin/bash
myimage=local/dockervino:phase1_R3
myname=dockervinoph1
set -x
......
# Compilation of examples for openVino
# Compilation demo_squeezenet_download_conver_run and security_barrier_camera
FROM local/dockervino:phase1_R2 as build
FROM local/dockervino:phase1_R3 as build
MAINTAINER jdg:juan-diego.gonzales-zuniga@kontron.com
ARG INSTALL_DIR=/opt/intel/openvino
WORKDIR $INSTALL_DIR/deployment_tools/demo
......
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase2_R2 . #| tee openvinobuild.log
docker build --tag=local/dockervino:phase2_R3 . #| tee openvinobuild.log
#!/bin/bash
myimage=local/dockervino:phase2_R2
myimage=local/dockervino:phase2_R3
myname=dockervinoph2
set -x
......
# Docker image after installation
# Downloads model ssd300 and creates yolov3
FROM local/dockervino:phase2_R2
FROM local/dockervino:phase2_R3
MAINTAINER jdg:juan-diego.gonzales-zuniga@kontron.com
ARG INSTALL_DIR=/opt/intel/openvino
ARG downloader=$INSTALL_DIR/deployment_tools/tools/model_downloader/downloader.py
......@@ -11,13 +11,13 @@ ARG models=/root/openvino_models
# Downloading SSD Detection
RUN python3 $downloader --name ssd300 --output_dir $models
RUN python3 $optimizer/mo.py \
--input_model $models/object_detection/common/ssd/300/caffe/models/VGGNet/VOC0712Plus/SSD_300x300_ft/VGG_VOC0712Plus_SSD_300x300_ft_iter_160000.caffemodel \
--input_proto $models/object_detection/common/ssd/300/caffe/models/VGGNet/VOC0712Plus/SSD_300x300_ft/deploy.prototxt \
--input_model $models/public/ssd300/models/VGGNet/VOC0712Plus/SSD_300x300_ft/VGG_VOC0712Plus_SSD_300x300_ft_iter_160000.caffemodel \
--input_proto $models/public/ssd300/models/VGGNet/VOC0712Plus/SSD_300x300_ft/deploy.prototxt \
--output_dir $models/ir/ssd300/FP32 --model_name ssd300 --data_type FP32
RUN python3 $optimizer/mo.py \
--input_model $models/object_detection/common/ssd/300/caffe/models/VGGNet/VOC0712Plus/SSD_300x300_ft/VGG_VOC0712Plus_SSD_300x300_ft_iter_160000.caffemodel \
--input_proto $models/object_detection/common/ssd/300/caffe/models/VGGNet/VOC0712Plus/SSD_300x300_ft/deploy.prototxt \
--input_model $models/public/ssd300/models/VGGNet/VOC0712Plus/SSD_300x300_ft/VGG_VOC0712Plus_SSD_300x300_ft_iter_160000.caffemodel \
--input_proto $models/public/ssd300/models/VGGNet/VOC0712Plus/SSD_300x300_ft/deploy.prototxt \
--output_dir $models/ir/ssd300/FP16 --model_name ssd300 --data_type FP16
# Downloading Human Pose Detection
......
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase3_R2 . #| tee openvinobuild.log
docker build --tag=local/dockervino:phase3_R3 . #| tee openvinobuild.log
#!/bin/bash
myimage=local/dockervino:phase3_R2
myimage=local/dockervino:phase3_R3
myname=dockervinoph3
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