OpenVINO: Installation
Now it’s time to get dirty. First step is installing OpenVINO to our local system. At the end of this article, we will have separately installed it for two operating systems. It is worth saying that we will see warnings during the installation since the installation for Windows is not based on an Intel system. Our aim was to see and learn these warnings. Enjoy The Installation . . .
Let’s start by downloading openVINO first. Let’s choose the operating system that we want to download and fill out the form (Figure 1.1)
Then, move to the next page by pressing the Submit button. Here we can choose the version we want (with the Customizable Package option, we can download the packages we want in the option). Let’s download the installation file with the Full Package button (Figure 1.2)
Ubuntu, CentOS, and Yocto Project distributions are supported for Linux. When we continue with the Linux option, we will have the compressed file with the extension .tgz, and when we download for Windows, we will have the direct installation file with the extension .exe. I divided it into Ubuntu and Windows, and these parts are independent of each other. You can read interdependently whatever you need.
Ubuntu
Ubuntu 18.04 version must be used for the successful installation.
While running the installation, steps were taken on Ubuntu 19.10 to see the warnings. The installation will be complete with any problem when the same steps are performed with Ubuntu 18.04.
When we right click on the file we downloaded and press Extract here, the compressed file will open to the location. The files required for the installation process will be included in this file (Figure 1.3)
There are two files in the file we extracted. The first one is “install.sh” and the other is “ install_GUI.sh” . install.sh, which will enable us to install on the terminal, while install_GUI.sh will provide it with the help of the interface. We will continue from the terminal (Figure 1.4).
For this, we can choose one of the following two codes:
- sudo bash install.sh -> The sudo command will allow us to install the program as root user. This can be compared to the option Run as administrator on Windows. If the program is loaded with this code, OpenVINO will be installed in “/ opt / intel” file by default.
- bash install.sh -> With this code, we upload it to “/ home / user / intel” directory (Figure1.5).
It is no different than a standard installation process from now on. If preferred, “sudo -E ./install_openvino_dependencies.sh” code can be run from the terminal in the installation file for external software requirements. We can press the “Enter” key to continue the installation (Figure1.6).
Then the contract screen will come, which we have to read by pressing enter and confirm by typing “accept” (Figure 1.7).
In the same way, when we write “2” to does not want to share and for confirm “1” about data sharing (Figure 1.8).
After passing the data sharing page, the installation tool shows us the missing programs and packages and models. In this context, you see the loading screen that I performed on Ubuntu 18.04 (Figure 1.9). There is no incompatible Operating system warning due to Intel’s support version. The installer warns us that OpenCL drivers are missing and no root installation is possible. When we press “1” here, we go to the last screen. Finally, it will be useful to show the installation in Ubuntu 19.10 in Figure 1.10 to understand this screen Figure (1.10).
In the last screen, we can see where the installation will be located and the packages to be installed. If desired, the packages to be installed by selecting “2” option can be preferred, but it will be important to load the entire package in order not to get any errors in the future. We can press “1” to start the installation (Figure 1.11).
There are two steps left from the installation process. Installing software requirements and operating system variable settings.
Installing Software Requirements
Software requirements can be installed with a two-line terminal code for Ubuntu. The first line goes to the directory loaded with code and the second code can be installed.
- “cd /opt/intel/openvino/install_dependencies” When installed as root, the installation directory is the specified directory.
- “sudo -E ./install_openvino_dependencies.sh” The installation is performed with the written bash command.
Environmental Variable Settings
When the operating system runs, the following code is added to the file containing the codes that are called after system starts. With this variables has been set.
While in the “home” directory, we can open the bashrc file with any text editor and add the second code in it.
- nano ./.bashrc
- source /opt/intel/openvino/bin/setupvars.sh
Woala. OpenVINO is now ready to develop. Enjoy the development . . .
Windows
We can say that installing with Windows is much easier and user-friendly than Ubuntu. Even without opening the terminal, the installer can be run by double-clicking the file with the .exe extension downloaded (Figure 2.1). Installation can be done by following the steps below. We can extract the installer to the specified directory and check the “Remove temporarily..” Box to delete unnecessary files after installation (Figure 2.2).
With the start of the installation process, we see the preference screen for the packages required for OpenVINO directly. It is useful to install all of them because all the packages maybe required to avoid errors in the development process (Figure 2.3).
Then it comes the data sharing confirmation page, where confirming or not confirming the sending of the data does not affect the continuation of the installation (Figure 2.4).
Finally, the warning screen shows the deficiencies. I did not choose an Intel supported system for the Windows platform. Because it is useful to see the warnings that may come. As you can see, there is a warning that the system does not have Intel architecture. Additionally, Intel is warned that it does not have a graphics processing unit with architecture (Figure 2.5)
Installing Software Requirements
To quickly set system variables, let’s open cmd in the Windows start menu and open the command window. Let’s run the following commands in order.
- “cd C:\Program Files (x86)\IntelSWTools\openvino\bin\” With this command, we reach the directory of the .bat file that will edit the system variables.
- “setupvars.bat”
We came to the end of another article. It is hoped that a useful and enjoyable loading process has taken place. The next goal is to prepare ourselves for fully developed Edge AI by doing the same operations on Google Colab, which we can access from anywhere. A small reminder, I attach the official instructions of Intel for both Linux and Windows to the bibliography section, and the Model Optimizer can be adjusted. Pleasant Readings . . . 👋 👋 👋
Bibliography:
Linux:
Windows: