Skip to content

Commit

Permalink
[DOCS] Port docs (#18032)
Browse files Browse the repository at this point in the history
* add enter dir (#17897)

* add tabs (#18007)
  • Loading branch information
tsavina authored Jun 13, 2023
1 parent 6043bcb commit ec2db81
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
19 changes: 11 additions & 8 deletions docs/install_guides/installing-openvino-docker-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <image_name>
/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 <image_name>
/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 <image_name>
/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 <image_name>
/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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ You must update several environment variables before you can compile and run Ope

.. code-block:: sh

cd /opt/intel/openvino_2023
source /opt/intel/openvino_2023/setupvars.sh


Expand Down

0 comments on commit ec2db81

Please sign in to comment.