OpenVINO: Google Colab Installation

The development environment used when learning a platform is one of the factors that affect this learning process the most. Working on the cloud, independent of local systems, has an important place in our lives with the need for high equipment and the ability to work independently from the location. Then let’s wink at Google Colab and develop it with Edge AI everywhere. . . 🌍

Soner Can KALKAN
5 min readMar 4, 2020
Photo by Philipp Katzenberger on Unsplash

Google Colab

Google Colaboratory is a browser-based lab environment that allows users to develop in a notebook environment. With this environment, we can access graphic and tensor processing units for free and work on them. It is obvious that it is a valuable resource especially for fields such as Data Science, Artificial Intelligence, Deep Learning and Data Analysis. Of course, this free resource is not endless, so there are certain restrictions. For example, in the free version, a notebook can stay connected for a maximum of 12 hours. In addition, if nothing is done, this connection is broken. The paid version offers us some improvements in these features. details are available on the relevant page of Google.

Google Colab

Let’s see why it is so precious for us. After all, OpenVINO does not work with Nvidia Graphics cards. The most important factor for us to be important is that we can access the codes directly from Intel’s server processors, as well as being able to run the codes directly. As we know, Google Colab does not have an interface where we can do the necessary setups. The processes need to be installed on the Linux distribution, all running on the notebook and in the background. The purpose of this article is to explain this. Now that we know Google Colab, let’s get started.

Introduction to Colab

When we first login to Colab, notebook structure meets us. What do we mean by notebook structure? In the notebook structure, codes are written in blocks and run. Generally, we can say that it is a laboratory environment. We can say that it is a field of playing with code pieces like a lego rather than making a quality code. When we first login to Colab, notebook structure meets us. What do we mean by notebook structure? In the notebook structure, codes are written in blocks and run. Generally, we can say that it is a laboratory environment. He can say that it is a field of playing with code pieces like a lego rather than making a quality code. Of course, this environment runs on an operating system and server. Our job is also in this part. Thanks to the notebook and its features, it offers us the opportunity to interfere with the Linux operating system to a certain extent. We do this by warning the notebook with 👉! 👈.

!pip install happyness 😁

Installation

We will also adjust our Colab environment with these exclamations. First of all, it is necessary to learn to see the features of the server allocated to us. The reason for this is that Openvino can run on an Intel processor and three Linux-based distributions. You can find the details of these in the previous article. It is enough to paste the code below into a block and run it. (Figure 1)

!sudo apt-get install pciutils

Figure 1

With this code, we have installed the required pciutils package on the server. We also need what the processor is. As Mevlana Celaleddin Rumi said, “Whatever you say, what you say is as much as what the other understands.” So whatever we say, the server is a processor that Intel understands Openvino, whatever we do if it doesn’t have a brain. He kindly asked you to ask the machine about it. . . (Figure 2)

!sudo apt-get update -y && sudo apt-get install -y cpio

Figure 2

Here we are saying update the server and install the “cpio” package. Now our server question has become responsive. So let’s ask. . . (Figure 3)

!lscpu

Figure 3

Let’s ask the operating system and see what it is. (Figure 4)

!cat /etc/os-release

Figure 4

We can now download and install Openvino on the server. Occasional wonderers can use the command (“!uname -r”). For this, we can download Openvino using the “wget” command. (Figure 5)

!wget http://registrationcenter-download.intel.com/akdlm/irc_nas/16057/l_openvino_toolkit_p_2019.3.376.tgz

Figure 5

Then we just need to extract the file with the extension tgz. For this, we can run the following code. (Figure 6)

!tar -xvzf l_openvino_toolkit_p_2019.3.376.tgz

Figure 6

After that, we can enter the file we have extracted and perform the installation. Here we can execute two commands one line at a time with the “&&” operator. The installation can be done by running the install.sh file with the “cd” command and then the “bash” command. The next steps will be the same as installing on Linux. You can access the previous article for details. (Figure 7)

!cd l_openvino_toolkit_p_2019.3.376/ && bash install.sh

Figure 7

--

--

Soner Can KALKAN
Soner Can KALKAN

Written by Soner Can KALKAN

📊 Data Scientist | 🌍 Exploring the Data Universe, One Insight at a Time

No responses yet