Introduction
This document will guide you through the process of installing OpenVINO™ Toolkit and OpenVINO™ Notebooks on an Intel® NUC.
This content is written targeting OpenVINO™ Toolkit 2022.3 LTS, which is the latest version at the time of writing (3/7/2023).
This time, Windows 10 Enterprise 22H2 was used as the OS, and Intel® NUC, a product handled by our company, was used as the hardware.
This procedure is based on the github ULR of Intel® Distribution of OpenVINO™ Toolkit and OpenVINO™ Notebooks below.
Reference:
- Intel® Distribution of OpenVINO™ Toolkit
- OpenVINO™ Notebooks github
- Intel® NUC A compact and extremely powerful computer in your hands
<The products we used in this project
- Intel® NUC with 11th generation Intel® Core™ processor
1. preliminary preparation
STEP 1-1 : Installing Windows 10 Enterprise 22H2
Install Windows 10 Enterprise 22H2.
STEP 1-2: Install Python 3.8
Download the Python installer from python.org. Be sure to select the 64-bit version. We will use the 3.8 installer.
https://www.python.org/ftp/python/3.8.8/python-3.8.8-amd64.exe
Double-click the installer to run it and follow the installer's instructions.
Enable the Add Python 3.8 to PATH option to add Python to your PATH and install.
It is recommended that you disable the PATH length limit by enabling the Disable path length limit option at the end of the installer.
Confirm that python 3.8 has been successfully installed at the command prompt.
python -V
STEP 1-3: Install git
Download the Standalone Installer 64-bit Git for Windows Setup from this link.
Double-click the installer to run it and follow the instructions in the installer.
STEP 1-4 : Install C++ Redistributable (for Python 3.8)
Download the Microsoft Visual C++ Redistributable Package from this link.
Double-click the installer to run it and follow the installer's instructions.
Install OpenVINO™ Toolkit 2022.3 LTS
Download and install OpenVINO™ using the Intel® Distribution of OpenVINO™ Toolkit link.
This time, we will use the PyPI method, which is the easiest way to install OpenVINO™ Toolkit, so select as shown in the capture below.
Environment :. Development Tools
Operating System : Windows Windows
Version : Windows 2022.3 (Recommended)
Distribution : PIP PIP
The necessary commands are displayed according to the selected Environment, Operating System, Version, and Distribution as shown below.
STEP 2-1 : Create a virtual environment.
python -m venv openvino_env
STEP 2-2 : Activate the virtual environment.
openvino_env\Scripts\activate
STEP 2-3 : Upgrade pip to the latest version.
python -m pip install --upgrade pip
STEP 2-4 : Download and install the Development Tools, specifying the version.
pip install openvino-dev==2022.3.0
As shown below, a message will appear after executing the command. If no error occurs, the environment building is complete.
Note that if you have closed the command window, execute STEP 2-2 again to activate the OpenVINO™ virtual environment.
openvino_env\Scripts\activate
3. Install and run OpenVINO™ Notebooks
Refer to the OpenVINO™ Notebooks github link for Windows Install OpenVINO™ Notebooks by referring to the OpenVINO™ Notebooks github link for Windows.
STEP 3-1 : Activate the OpenVINO™ virtual environment. If you have already activated it, it is not necessary.
openvino_env\Scripts\activate
STEP 3-2 : Clone the repository.
git clone --depth=1 https://github.com/openvinotoolkit/openvino_notebooks.git
STEP 3-3 : Move to the openvino_notebooks directory by cd command.
cd openvino_notebooks
STEP 3-4 : Install packages such as dependencies.
pip install wheel setuptools
pip install -r requirements.txt
STEP 3-5 : Start all notebooks at once.
jupyter lab notebooks
You have successfully started the notebooks. Select "notebooks" from the sidebar on the left side of the screen.
Each notebook is located in a subdirectory of the notebooks directory.
STEP 3-6 : Monodepth notebook (depth estimation) example, but you can also specify a single notebooks to start.
jupyter notebook notebooks/201-vision-monodepth/201-vision-monodepth.ipynb
The notebooks have been successfully launched.
STEP 3-7 : Running Notebooks
Basically, you can execute each step by simply clicking the Run button at the top.
This is the result of executing the seventh code from the top.
The result of depth estimation for the source image on the left is displayed on the right.
This is the result of running the 11th code from the top.
For the left source video, the resulting depth-estimated video is displayed on the right.
Summary
There are many notebooks available, but please refer to Getting Started in the following link to try it out.
Reference: