From fe3c1fb01f1f248e5b6a0a7eb1ccf0096e4b3011 Mon Sep 17 00:00:00 2001 From: Qi Zheng Date: Tue, 24 Dec 2019 15:48:44 +0800 Subject: [PATCH] Update sample model to mobilenetv2-int8-tf-0001 This model could show AVX512 VNNI performance advantage. Signed-off-by: Qi Zheng --- openvino/README.md | 9 ++++----- openvino/classification.yaml | 2 +- openvino/demo.sh | 2 -- openvino/docker-compose-server.yml | 2 +- openvino/docker-compose.yml | 2 +- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/openvino/README.md b/openvino/README.md index 9214c59..918decb 100644 --- a/openvino/README.md +++ b/openvino/README.md @@ -59,7 +59,7 @@ The model precision to be chosen, FP32, FP16 or INT8. #### MODEL_PATH The chosen model path, automatically set by the entrypoint script. -For example, if using alexnet model to do classification, two environment variables +For example, if using mobilenetv2-int8-tf-0001 model to do classification, two environment variables need to be passed to the container. Details can refer to the deployment below. @@ -75,7 +75,7 @@ Docker Hub. docker pull clearlinux/openvino ``` -2. Start one-time classification_sample with alexnet model as below: +2. Start one-time classification_sample with mobilenetv2-int8-tf-0001 model as below: * Use docker-compose to start the example: ``` @@ -87,7 +87,7 @@ Docker Hub. Or -3. Start a simple openvino-server to accept image to do classification_sample with alexnet model: +3. Start a simple openvino-server to accept image to do classification_sample with mobilenetv2-int8-tf-0001 model: * Use docker-compose to start the server first: ``` @@ -123,8 +123,7 @@ To deploy the image on a Kubernetes cluster: ``` kubectl get pods -o wide ``` - This may take some time because it requires downloading/converting the - alexnet model. + This may take some time because it requires downloading/converting the model. Note, if your cluster is behind some proxy, you may need set the proxy environment in the yaml file to make the model-init can download the model. diff --git a/openvino/classification.yaml b/openvino/classification.yaml index bfffa88..6cb8628 100644 --- a/openvino/classification.yaml +++ b/openvino/classification.yaml @@ -52,7 +52,7 @@ spec: # - name: https_proxy # value: - name: MODEL_NAME - value: alexnet + value: mobilenetv2-int8-tf-0001 - name: MODEL_PRECISION value: FP32 args: diff --git a/openvino/demo.sh b/openvino/demo.sh index ce9d388..837d33e 100755 --- a/openvino/demo.sh +++ b/openvino/demo.sh @@ -2,6 +2,4 @@ # Copyright (C) 2018 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -# demo to use alexnet modle to do classification - classification_sample_async -i cat.bmp -m $MODEL_PATH/$MODEL_NAME.xml diff --git a/openvino/docker-compose-server.yml b/openvino/docker-compose-server.yml index 17fbd00..a70de68 100644 --- a/openvino/docker-compose-server.yml +++ b/openvino/docker-compose-server.yml @@ -6,7 +6,7 @@ services: environment: http_proxy: $http_proxy https_proxy: $https_proxy - MODEL_NAME: alexnet + MODEL_NAME: mobilenetv2-int8-tf-0001 MODEL_PRECISION: FP32 ports: - "5000:5000" diff --git a/openvino/docker-compose.yml b/openvino/docker-compose.yml index bb956f0..6c4defd 100644 --- a/openvino/docker-compose.yml +++ b/openvino/docker-compose.yml @@ -6,7 +6,7 @@ services: environment: http_proxy: $http_proxy https_proxy: $https_proxy - MODEL_NAME: alexnet + MODEL_NAME: mobilenetv2-int8-tf-0001 MODEL_PRECISION: FP32 volumes: - "./cat.bmp:/app/cat.bmp"