From 95e1f990aedd24a356347604cb5f179cdd4d07ca Mon Sep 17 00:00:00 2001 From: Tatiana Savina Date: Mon, 12 Jun 2023 15:22:26 +0200 Subject: [PATCH] add tabs --- .../installing-openvino-docker-linux.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/install_guides/installing-openvino-docker-linux.md b/docs/install_guides/installing-openvino-docker-linux.md index 7f934759425730..8d0d458f987cb0 100644 --- a/docs/install_guides/installing-openvino-docker-linux.md +++ b/docs/install_guides/installing-openvino-docker-linux.md @@ -148,19 +148,22 @@ Running Samples in Docker Image To run the ``Hello Classification Sample`` on a specific inference device, run the following commands: -**CPU**: -.. code-block:: sh +.. tab-set:: - docker run -it --rm - /bin/bash -c "cd ~ && omz_downloader --name googlenet-v1 --precisions FP16 && omz_converter --name googlenet-v1 --precision FP16 && curl -O https://storage.openvinotoolkit.org/data/test_data/images/car_1.bmp && python3 /opt/intel/openvino/samples/python/hello_classification/hello_classification.py public/googlenet-v1/FP16/googlenet-v1.xml car_1.bmp CPU" + .. tab-item:: CPU -**GPU**: + .. code-block:: sh -.. code-block:: sh + docker run -it --rm + /bin/bash -c "cd ~ && omz_downloader --name googlenet-v1 --precisions FP16 && omz_converter --name googlenet-v1 --precision FP16 && curl -O https://storage.openvinotoolkit.org/data/test_data/images/car_1.bmp && python3 /opt/intel/openvino/samples/python/hello_classification/hello_classification.py public/googlenet-v1/FP16/googlenet-v1.xml car_1.bmp CPU" + + .. tab-item:: GPU + + .. code-block:: sh - docker run -itu root:root --rm --device /dev/dri:/dev/dri - /bin/bash -c "omz_downloader --name googlenet-v1 --precisions FP16 && omz_converter --name googlenet-v1 --precision FP16 && curl -O https://storage.openvinotoolkit.org/data/test_data/images/car_1.bmp && python3 samples/python/hello_classification/hello_classification.py public/googlenet-v1/FP16/googlenet-v1.xml car_1.bmp GPU" + docker run -itu root:root --rm --device /dev/dri:/dev/dri + /bin/bash -c "omz_downloader --name googlenet-v1 --precisions FP16 && omz_converter --name googlenet-v1 --precision FP16 && curl -O https://storage.openvinotoolkit.org/data/test_data/images/car_1.bmp && python3 samples/python/hello_classification/hello_classification.py public/googlenet-v1/FP16/googlenet-v1.xml car_1.bmp GPU" Additional Resources