Install the Intel® Distribution of OpenVINO™ toolkit for Linux*

Install the Intel® Distribution of OpenVINO™ toolkit for Linux*

https://software.intel.com/en-us/articles/OpenVINO-Install-Linux

Intel Movidius
https://www.movidius.com/

Intel® Neural Compute Stick 2
https://software.intel.com/en-us/neural-compute-stick

Intel® Distribution of OpenVINO™ Toolkit
https://software.intel.com/en-us/openvino-toolkit

Intel® Distribution of OpenVINO™ Toolkit - Documentation
https://software.intel.com/en-us/openvino-toolkit/documentation/featured

Introduction

Important:

  • All steps in this guide are required unless otherwise stated.
  • In addition to the downloaded package, you must install dependencies and complete configuration steps.

Your installation is complete when these are all completed:

  1. Installed the external software dependencies.
  2. Installed the Intel® Distribution of OpenVINO™ toolkit core components.
  3. Set the Intel Distribution of OpenVINO toolkit environment variables and (optional) update .bashrc.
  4. Configured the Model Optimizer.
  5. Optional. Installed software or drivers for:
    • Integrated Graphics
    • Intel® Movidius™ Neural Compute Stick (NCS) and Intel® Neural Compute Stick 2
  6. Ran two demos.

About the Intel® Distribution of OpenVINO™ toolkit

The Intel® Distribution of OpenVINO™ toolkit quickly deploys applications and solutions that emulate human vision. Based on Convolutional Neural Networks (CNN), the toolkit extends computer vision (CV) workloads across Intel® hardware, maximizing performance. The Intel Distribution of OpenVINO toolkit includes the Intel® Deep Learning Deployment Toolkit (Intel® DLDT).

The Intel Distribution of OpenVINO toolkit for Linux*:

  • Enables CNN-based deep learning inference on the edge
  • Supports heterogeneous execution across a CPU, Integrated Graphics and Intel® Movidius™ Neural Compute Stick (NCS) and and Intel® Neural Compute Stick 2
  • Speeds time-to-market via an easy-to-use library of computer vision functions and pre-optimized kernels
  • Includes optimized calls for computer vision standards, including OpenCV*, OpenCL™, and OpenVX*

Included with the Installation

The following components are installed by default:

在這裏插入圖片描述

System requirements

This guide covers the Linux version of the Intel Distribution of OpenVINO toolkit that does not include FPGA support. For the toolkit that includes FPGA support, see Installing the Intel Distribution of OpenVINO toolkit for Linux with FPGA Support.

Hardware

  • 6th-8th Generation Intel® Core™
  • Intel® Xeon® v5 family
  • Intel® Xeon® v6 family
  • Intel® Pentium® processor N4200/5, N3350/5, N3450/5 with Intel® HD Graphics
  • Intel® Movidius™ NCS
  • Intel® Neural Compute Stick 2

Processor Notes

  • Processor graphics are not included in all processors. See Product specifications, processors for information about your processor.
  • A chipset that supports processor graphics is required if you’re using an Intel Xeon processor. See Product specifications, chipsets for information about your chipset.

https://ark.intel.com/

Operating Systems
Ubuntu* 16.04 long-term support (LTS), 64-bit
CentOS* 7.4 or higher, 64-bit
Yocto Project* Poky Jethro* v2.0.3, 64-bit (for target only)

Installation Steps

This guide assumes you downloaded the Intel Distribution of OpenVINO toolkit for Linux* OS. If you do not have a copy of the toolkit package file, download the latest version and then return to this guide to proceed with the installation.

Install external software dependencies

(1) Open the Terminal* or your preferred console application and go to the directory in which you downloaded the Intel® Distribution of OpenVINO™ toolkit. This document assumes this is your ~/Downloads directory. If not, replace ~/Downloads with the directory where the file is located:

cd ~/Downloads/

By default, the package file is saved as l_openvino_toolkit_p_.tgz

(2) Unpack the .tgz file you downloaded:

tar -zxf l_openvino_toolkit_p_<version>.tgz

The files are unpacked to a directory named l_openvino_toolkit_p_

(3) Go to the l_openvino_toolkit_p_ directory:

cd l_openvino_toolkit_p_<version>

(4) Run a script to automatically download and install external software dependencies. These dependencies are required for the Intel-optimized version of OpenCV, the Deep Learning Inference Engine, and the Deep Learning Model Optimizer tools. Install these before the Intel Distribution of OpenVINO toolkit.

./install_cv_sdk_dependencies.sh

As an option, you can install all the dependencies manually instead of running install_cv_sdk_dependencies.sh. In this case, use the list of dependencies at System Requirements.
https://software.intel.com/en-us/openvino-toolkit/documentation/system-requirements

Note: The Model Optimizer has additional prerequisites that are addressed later in this document.

The dependencies are installed. Continue to the next section to install the Intel Distribution of OpenVINO toolkit core components.

strong@foreverstrong:~$ cd ~/Downloads/
strong@foreverstrong:~/Downloads$ ll
total 1412052
drwxr-xr-x  2 strong strong       4096 11月 20 09:05 ./
drwxr-xr-x 18 strong strong       4096 11月 20 08:48 ../
-rwxrwxrwx  1 strong strong 1445927668 11月 19 22:40 l_openvino_toolkit_p_2018.4.420.tgz*
strong@foreverstrong:~/Downloads$ 
strong@foreverstrong:~/Downloads$ tar xvf l_openvino_toolkit_p_2018.4.420.tgz 
......
strong@foreverstrong:~/Downloads$ 


strong@foreverstrong:~/Downloads$ cd l_openvino_toolkit_p_2018.4.420/
strong@foreverstrong:~/Downloads/l_openvino_toolkit_p_2018.4.420$ ll
total 100
drwxr-xr-x 4 strong strong  4096 11月 10 03:11 ./
drwxr-xr-x 3 strong strong  4096 11月 20 09:06 ../
-rw-r--r-- 1 strong strong 42983 11月  9 23:21 EULA.txt
-rwxr-xr-x 1 strong strong  4547 11月  9 23:21 install_cv_sdk_dependencies.sh*
-rwxr-xr-x 1 strong strong   643 11月 10 03:10 install_GUI.sh*
-rwxr-xr-x 1 strong strong 19118 11月 10 03:10 install.sh*
drwxr-xr-x 6 strong strong  4096 11月 10 03:11 pset/
-rwxr-x--- 1 strong strong   975 11月 10 02:14 PUBLIC_KEY.PUB*
drwxr-xr-x 2 strong strong  4096 11月 10 03:11 rpm/
-rw-r--r-- 1 strong strong  2285 11月 10 03:10 silent.cfg
strong@foreverstrong:~/Downloads/l_openvino_toolkit_p_2018.4.420$ ./install_cv_sdk_dependencies.sh 
ERROR: this script must be run as root to install 3rd party packages.
Please try again with sudo -E ./install_cv_sdk_dependencies.sh, or as root.
strong@foreverstrong:~/Downloads/l_openvino_toolkit_p_2018.4.420$

 
strong@foreverstrong:~/Downloads/l_openvino_toolkit_p_2018.4.420$ sudo ./install_cv_sdk_dependencies.sh 
[sudo] password for strong: 

This script installs the following OpenVINO 3rd-party dependencies:
1. FFmpeg and GStreamer libraries required for OpenCV and Inference Engine
2. libusb library required for Myriad plugin for Inference Engine
3. build dependencies for OpenVINO samples

Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Hit:2 http://cn.archive.ubuntu.com/ubuntu xenial InRelease                              
Get:3 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]             
Get:4 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:5 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [883 kB]
Get:6 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [785 kB]
Get:7 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [704 kB]
Get:8 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [645 kB]
Fetched 3,341 kB in 5s (570 kB/s)                        
Reading package lists... Done
Building dependency tree       
Reading state information... Done
23 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
gstreamer1.0-plugins-base is already the newest version (1.8.3-1ubuntu0.2).
libgstreamer1.0-0 is already the newest version (1.8.3-1~ubuntu0.1).
The following package was automatically installed and is no longer required:
  libllvm4.0
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  autotools-dev cmake-data debhelper dh-strip-nondeterminism gir1.2-gtk-2.0 libatk1.0-dev libavutil-dev libcairo-script-interpreter2
  libexpat1-dev libfile-stripnondeterminism-perl libfontconfig1-dev libfreetype6-dev libgdk-pixbuf2.0-dev libharfbuzz-dev
  libharfbuzz-gobject0 libice-dev libjsoncpp1 libmail-sendmail-perl libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev
  libpthread-stubs0-dev libset-scalar-perl libsm-dev libswresample-dev libsys-hostname-long-perl libusb-1.0-doc libva-drm1 libva-egl1
  libva-glx1 libva-tpi1 libva-wayland1 libva-x11-1 libwayland-bin libwayland-dev libx11-dev libx11-doc libxau-dev libxcb-render0-dev
  libxcb-shm0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev
  libxinerama-dev libxml2-utils libxrandr-dev libxrender-dev po-debconf x11proto-composite-dev x11proto-core-dev x11proto-damage-dev
  x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-xext-dev x11proto-xinerama-dev
  xorg-sgml-doctools xtrans-dev zlib1g-dev
Suggested packages:
  codeblocks eclipse ninja-build dh-make libcairo2-doc libglib2.0-doc libgtk2.0-doc libice-doc libpango1.0-doc libsm-doc libxcb-doc
  libxext-doc libmail-box-perl
The following NEW packages will be installed:
  autotools-dev cmake cmake-data debhelper dh-strip-nondeterminism gir1.2-gtk-2.0 libatk1.0-dev libavcodec-dev libavformat-dev libavutil-dev
  libcairo-script-interpreter2 libcairo2-dev libdrm-dev libexpat1-dev libfile-stripnondeterminism-perl libfontconfig1-dev libfreetype6-dev
  libgdk-pixbuf2.0-dev libglib2.0-dev libgtk2.0-dev libharfbuzz-dev libharfbuzz-gobject0 libice-dev libjsoncpp1 libmail-sendmail-perl
  libpango1.0-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libpng12-dev libpthread-stubs0-dev libset-scalar-perl libsm-dev
  libswresample-dev libswscale-dev libsys-hostname-long-perl libusb-1.0-0-dev libusb-1.0-doc libva-dev libva-drm1 libva-egl1 libva-glx1
  libva-tpi1 libva-wayland1 libva-x11-1 libwayland-bin libwayland-dev libx11-dev libx11-doc libxau-dev libxcb-render0-dev libxcb-shm0-dev
  libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev
  libxml2-utils libxrandr-dev libxrender-dev po-debconf x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev
  x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-xext-dev x11proto-xinerama-dev xorg-sgml-doctools
  xtrans-dev zlib1g-dev
0 upgraded, 80 newly installed, 0 to remove and 23 not upgraded.
Need to get 23.7 MB of archives.
After this operation, 122 MB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 cmake-data all 3.5.1-1ubuntu3 [1,121 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libjsoncpp1 amd64 1.7.2-1 [73.0 kB]                                              
Get:3 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 cmake amd64 3.5.1-1ubuntu3 [2,623 kB]                                    
Get:4 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libpcrecpp0v5 amd64 2:8.38-3.1 [15.2 kB]                                         
Get:5 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 autotools-dev all 20150820.1 [39.8 kB]                                           
Get:6 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 po-debconf all 1.0.19 [234 kB]                                                   
Get:7 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libfile-stripnondeterminism-perl all 0.015-1 [10.3 kB]                           
Get:8 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 dh-strip-nondeterminism all 0.015-1 [4,864 B]                                    
Get:9 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 debhelper all 9.20160115ubuntu3 [739 kB]                                         
Get:10 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 gir1.2-gtk-2.0 amd64 2.24.30-1ubuntu1.16.04.2 [172 kB]                  
Get:11 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libpcre32-3 amd64 2:8.38-3.1 [136 kB]                                           
Get:12 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libpcre3-dev amd64 2:8.38-3.1 [525 kB]                                          
Get:13 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 zlib1g-dev amd64 1:1.2.8.dfsg-2ubuntu4.1 [168 kB]                       
Get:14 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libglib2.0-dev amd64 2.48.2-0ubuntu4.1 [1,379 kB]                       
Get:15 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libatk1.0-dev amd64 2.18.0-1 [79.5 kB]                                          
Get:16 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libavutil-dev amd64 7:2.8.15-0ubuntu0.16.04.1 [245 kB]              
Get:17 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libswresample-dev amd64 7:2.8.15-0ubuntu0.16.04.1 [65.0 kB]         
Get:18 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libavcodec-dev amd64 7:2.8.15-0ubuntu0.16.04.1 [4,509 kB]           
Get:19 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libavformat-dev amd64 7:2.8.15-0ubuntu0.16.04.1 [969 kB]            
Get:20 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libcairo-script-interpreter2 amd64 1.14.6-1 [54.3 kB]                           
Get:21 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libexpat1-dev amd64 2.1.0-7ubuntu0.16.04.3 [115 kB]                     
Get:22 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpng12-dev amd64 1.2.54-1ubuntu1.1 [183 kB]                           
Get:23 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfreetype6-dev amd64 2.6.1-0.1ubuntu2.3 [956 kB]                      
Get:24 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfontconfig1-dev amd64 2.11.94-0ubuntu1.1 [658 kB]                    
Get:25 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 xorg-sgml-doctools all 1:1.11-1 [12.9 kB]                                       
Get:26 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 x11proto-core-dev all 7.0.31-1~ubuntu16.04.2 [254 kB]                   
Get:27 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxau-dev amd64 1:1.0.8-1 [11.1 kB]                                            
Get:28 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxdmcp-dev amd64 1:1.1.2-1.1 [25.1 kB]                                        
Get:29 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-input-dev all 2.3.1-1 [118 kB]                                         
Get:30 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-kb-dev all 1.0.7-0ubuntu1 [224 kB]                                     
Get:31 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 xtrans-dev all 1.3.5-1 [70.5 kB]                                                
Get:32 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libpthread-stubs0-dev amd64 0.3-4 [4,068 B]                                     
Get:33 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxcb1-dev amd64 1.11.1-1ubuntu1 [74.2 kB]                                     
Get:34 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx11-dev amd64 2:1.6.3-1ubuntu2.1 [640 kB]                            
Get:35 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-render-dev all 2:0.11.1-2 [20.1 kB]                                    
Get:36 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxrender-dev amd64 1:0.9.9-0ubuntu1 [24.5 kB]                                 
Get:37 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-xext-dev all 7.3.0-1 [212 kB]                                          
Get:38 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxext-dev amd64 2:1.3.3-1 [82.1 kB]                                           
Get:39 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libice-dev amd64 2:1.0.9-1 [44.9 kB]                                            
Get:40 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libsm-dev amd64 2:1.2.2-1 [16.2 kB]                                             
Get:41 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libpixman-1-dev amd64 0.33.6-1 [248 kB]                                         
Get:42 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxcb-render0-dev amd64 1.11.1-1ubuntu1 [15.3 kB]                              
Get:43 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxcb-shm0-dev amd64 1.11.1-1ubuntu1 [6,604 B]                                 
Get:44 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libcairo2-dev amd64 1.14.6-1 [590 kB]                                           
Get:45 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdrm-dev amd64 2.4.91-2~16.04.1 [232 kB]                              
Get:46 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgdk-pixbuf2.0-dev amd64 2.32.2-1ubuntu1.5 [44.4 kB]                  
Get:47 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libharfbuzz-gobject0 amd64 1.0.1-1ubuntu0.1 [10.9 kB]                   
Get:48 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libharfbuzz-dev amd64 1.0.1-1ubuntu0.1 [189 kB]                         
Get:49 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxft-dev amd64 2.3.2-1 [45.7 kB]                                              
Get:50 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libpango1.0-dev amd64 1.38.1-1 [277 kB]                                         
Get:51 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-xinerama-dev all 1.2.1-2 [4,966 B]                                     
Get:52 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxinerama-dev amd64 2:1.1.3-1 [8,404 B]                                       
Get:53 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-fixes-dev all 1:5.0-2ubuntu2 [14.2 kB]                                 
Get:54 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxfixes-dev amd64 1:5.0.1-2 [10.9 kB]                                         
Get:55 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxi-dev amd64 2:1.7.6-1 [184 kB]                                              
Get:56 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-randr-dev all 1.5.0-1 [33.7 kB]                                        
Get:57 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxrandr-dev amd64 2:1.5.0-1 [23.7 kB]                                         
Get:58 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxcursor-dev amd64 1:1.1.14-1ubuntu0.16.04.2 [26.4 kB]                
Get:59 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-composite-dev all 1:0.4.2-2 [10.5 kB]                                  
Get:60 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxcomposite-dev amd64 1:0.4.4-1 [9,954 B]                                     
Get:61 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-damage-dev all 1:1.2.1-2 [8,286 B]                                     
Get:62 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxdamage-dev amd64 1:1.1.4-2 [5,028 B]                                        
Get:63 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxml2-utils amd64 2.9.3+dfsg1-1ubuntu0.6 [35.0 kB]                    
Get:64 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgtk2.0-dev amd64 2.24.30-1ubuntu1.16.04.2 [2,598 kB]                 
Get:65 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libsys-hostname-long-perl all 1.5-1 [11.7 kB]                                   
Get:66 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libmail-sendmail-perl all 0.79.16-1 [26.5 kB]                                   
Get:67 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libswscale-dev amd64 7:2.8.15-0ubuntu0.16.04.1 [163 kB]             
Get:68 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libusb-1.0-0-dev amd64 2:1.0.20-1 [58.5 kB]                                     
Get:69 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libusb-1.0-doc all 2:1.0.20-1 [160 kB]                                          
Get:70 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libva-drm1 amd64 1.7.0-1ubuntu0.1 [8,336 B]                         
Get:71 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libva-egl1 amd64 1.7.0-1ubuntu0.1 [5,578 B]                         
Get:72 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libva-x11-1 amd64 1.7.0-1ubuntu0.1 [11.9 kB]                        
Get:73 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libva-glx1 amd64 1.7.0-1ubuntu0.1 [11.0 kB]                         
Get:74 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libva-tpi1 amd64 1.7.0-1ubuntu0.1 [5,884 B]                         
Get:75 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libva-wayland1 amd64 1.7.0-1ubuntu0.1 [8,276 B]                     
Get:76 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libwayland-bin amd64 1.12.0-1~ubuntu16.04.3 [18.4 kB]                   
Get:77 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libwayland-dev amd64 1.12.0-1~ubuntu16.04.3 [92.4 kB]                   
Get:78 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 libset-scalar-perl all 1.29-1 [31.9 kB]                                     
Get:79 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libva-dev amd64 1.7.0-1ubuntu0.1 [113 kB]                           
Get:80 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx11-doc all 2:1.6.3-1ubuntu2.1 [1,470 kB]                            
Fetched 23.7 MB in 1min 5s (363 kB/s)                                                                                                        
Extracting templates from packages: 100%
Selecting previously unselected package cmake-data.
(Reading database ... 248550 files and directories currently installed.)
Preparing to unpack .../cmake-data_3.5.1-1ubuntu3_all.deb ...
Unpacking cmake-data (3.5.1-1ubuntu3) ...
Selecting previously unselected package libjsoncpp1:amd64.
Preparing to unpack .../libjsoncpp1_1.7.2-1_amd64.deb ...
Unpacking libjsoncpp1:amd64 (1.7.2-1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../cmake_3.5.1-1ubuntu3_amd64.deb ...
Unpacking cmake (3.5.1-1ubuntu3) ...
Selecting previously unselected package libpcrecpp0v5:amd64.
Preparing to unpack .../libpcrecpp0v5_2%3a8.38-3.1_amd64.deb ...
Unpacking libpcrecpp0v5:amd64 (2:8.38-3.1) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../autotools-dev_20150820.1_all.deb ...
Unpacking autotools-dev (20150820.1) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../po-debconf_1.0.19_all.deb ...
Unpacking po-debconf (1.0.19) ...
Selecting previously unselected package libfile-stripnondeterminism-perl.
Preparing to unpack .../libfile-stripnondeterminism-perl_0.015-1_all.deb ...
Unpacking libfile-stripnondeterminism-perl (0.015-1) ...
Selecting previously unselected package dh-strip-nondeterminism.
Preparing to unpack .../dh-strip-nondeterminism_0.015-1_all.deb ...
Unpacking dh-strip-nondeterminism (0.015-1) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../debhelper_9.20160115ubuntu3_all.deb ...
Unpacking debhelper (9.20160115ubuntu3) ...
Selecting previously unselected package gir1.2-gtk-2.0.
Preparing to unpack .../gir1.2-gtk-2.0_2.24.30-1ubuntu1.16.04.2_amd64.deb ...
Unpacking gir1.2-gtk-2.0 (2.24.30-1ubuntu1.16.04.2) ...
Selecting previously unselected package libpcre32-3:amd64.
Preparing to unpack .../libpcre32-3_2%3a8.38-3.1_amd64.deb ...
Unpacking libpcre32-3:amd64 (2:8.38-3.1) ...
Selecting previously unselected package libpcre3-dev:amd64.
Preparing to unpack .../libpcre3-dev_2%3a8.38-3.1_amd64.deb ...
Unpacking libpcre3-dev:amd64 (2:8.38-3.1) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-2ubuntu4.1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Selecting previously unselected package libglib2.0-dev.
Preparing to unpack .../libglib2.0-dev_2.48.2-0ubuntu4.1_amd64.deb ...
Unpacking libglib2.0-dev (2.48.2-0ubuntu4.1) ...
Selecting previously unselected package libatk1.0-dev.
Preparing to unpack .../libatk1.0-dev_2.18.0-1_amd64.deb ...
Unpacking libatk1.0-dev (2.18.0-1) ...
Selecting previously unselected package libavutil-dev:amd64.
Preparing to unpack .../libavutil-dev_7%3a2.8.15-0ubuntu0.16.04.1_amd64.deb ...
Unpacking libavutil-dev:amd64 (7:2.8.15-0ubuntu0.16.04.1) ...
Selecting previously unselected package libswresample-dev:amd64.
Preparing to unpack .../libswresample-dev_7%3a2.8.15-0ubuntu0.16.04.1_amd64.deb ...
Unpacking libswresample-dev:amd64 (7:2.8.15-0ubuntu0.16.04.1) ...
Selecting previously unselected package libavcodec-dev:amd64.
Preparing to unpack .../libavcodec-dev_7%3a2.8.15-0ubuntu0.16.04.1_amd64.deb ...
Unpacking libavcodec-dev:amd64 (7:2.8.15-0ubuntu0.16.04.1) ...
Selecting previously unselected package libavformat-dev:amd64.
Preparing to unpack .../libavformat-dev_7%3a2.8.15-0ubuntu0.16.04.1_amd64.deb ...
Unpacking libavformat-dev:amd64 (7:2.8.15-0ubuntu0.16.04.1) ...
Selecting previously unselected package libcairo-script-interpreter2:amd64.
Preparing to unpack .../libcairo-script-interpreter2_1.14.6-1_amd64.deb ...
Unpacking libcairo-script-interpreter2:amd64 (1.14.6-1) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../libexpat1-dev_2.1.0-7ubuntu0.16.04.3_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.1.0-7ubuntu0.16.04.3) ...
Selecting previously unselected package libpng12-dev:amd64.
Preparing to unpack .../libpng12-dev_1.2.54-1ubuntu1.1_amd64.deb ...
Unpacking libpng12-dev:amd64 (1.2.54-1ubuntu1.1) ...
Selecting previously unselected package libfreetype6-dev:amd64.
Preparing to unpack .../libfreetype6-dev_2.6.1-0.1ubuntu2.3_amd64.deb ...
Unpacking libfreetype6-dev:amd64 (2.6.1-0.1ubuntu2.3) ...
Selecting previously unselected package libfontconfig1-dev:amd64.
Preparing to unpack .../libfontconfig1-dev_2.11.94-0ubuntu1.1_amd64.deb ...
Unpacking libfontconfig1-dev:amd64 (2.11.94-0ubuntu1.1) ...
Selecting previously unselected package xorg-sgml-doctools.
Preparing to unpack .../xorg-sgml-doctools_1%3a1.11-1_all.deb ...
Unpacking xorg-sgml-doctools (1:1.11-1) ...
Selecting previously unselected package x11proto-core-dev.
Preparing to unpack .../x11proto-core-dev_7.0.31-1~ubuntu16.04.2_all.deb ...
Unpacking x11proto-core-dev (7.0.31-1~ubuntu16.04.2) ...
Selecting previously unselected package libxau-dev:amd64.
Preparing to unpack .../libxau-dev_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau-dev:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp-dev:amd64.
Preparing to unpack .../libxdmcp-dev_1%3a1.1.2-1.1_amd64.deb ...
Unpacking libxdmcp-dev:amd64 (1:1.1.2-1.1) ...
Selecting previously unselected package x11proto-input-dev.
Preparing to unpack .../x11proto-input-dev_2.3.1-1_all.deb ...
Unpacking x11proto-input-dev (2.3.1-1) ...
Selecting previously unselected package x11proto-kb-dev.
Preparing to unpack .../x11proto-kb-dev_1.0.7-0ubuntu1_all.deb ...
Unpacking x11proto-kb-dev (1.0.7-0ubuntu1) ...
Selecting previously unselected package xtrans-dev.
Preparing to unpack .../xtrans-dev_1.3.5-1_all.deb ...
Unpacking xtrans-dev (1.3.5-1) ...
Selecting previously unselected package libpthread-stubs0-dev:amd64.
Preparing to unpack .../libpthread-stubs0-dev_0.3-4_amd64.deb ...
Unpacking libpthread-stubs0-dev:amd64 (0.3-4) ...
Selecting previously unselected package libxcb1-dev:amd64.
Preparing to unpack .../libxcb1-dev_1.11.1-1ubuntu1_amd64.deb ...
Unpacking libxcb1-dev:amd64 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libx11-dev:amd64.
Preparing to unpack .../libx11-dev_2%3a1.6.3-1ubuntu2.1_amd64.deb ...
Unpacking libx11-dev:amd64 (2:1.6.3-1ubuntu2.1) ...
Selecting previously unselected package x11proto-render-dev.
Preparing to unpack .../x11proto-render-dev_2%3a0.11.1-2_all.deb ...
Unpacking x11proto-render-dev (2:0.11.1-2) ...
Selecting previously unselected package libxrender-dev:amd64.
Preparing to unpack .../libxrender-dev_1%3a0.9.9-0ubuntu1_amd64.deb ...
Unpacking libxrender-dev:amd64 (1:0.9.9-0ubuntu1) ...
Selecting previously unselected package x11proto-xext-dev.
Preparing to unpack .../x11proto-xext-dev_7.3.0-1_all.deb ...
Unpacking x11proto-xext-dev (7.3.0-1) ...
Selecting previously unselected package libxext-dev:amd64.
Preparing to unpack .../libxext-dev_2%3a1.3.3-1_amd64.deb ...
Unpacking libxext-dev:amd64 (2:1.3.3-1) ...
Selecting previously unselected package libice-dev:amd64.
Preparing to unpack .../libice-dev_2%3a1.0.9-1_amd64.deb ...
Unpacking libice-dev:amd64 (2:1.0.9-1) ...
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack .../libsm-dev_2%3a1.2.2-1_amd64.deb ...
Unpacking libsm-dev:amd64 (2:1.2.2-1) ...
Selecting previously unselected package libpixman-1-dev.
Preparing to unpack .../libpixman-1-dev_0.33.6-1_amd64.deb ...
Unpacking libpixman-1-dev (0.33.6-1) ...
Selecting previously unselected package libxcb-render0-dev:amd64.
Preparing to unpack .../libxcb-render0-dev_1.11.1-1ubuntu1_amd64.deb ...
Unpacking libxcb-render0-dev:amd64 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libxcb-shm0-dev:amd64.
Preparing to unpack .../libxcb-shm0-dev_1.11.1-1ubuntu1_amd64.deb ...
Unpacking libxcb-shm0-dev:amd64 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libcairo2-dev.
Preparing to unpack .../libcairo2-dev_1.14.6-1_amd64.deb ...
Unpacking libcairo2-dev (1.14.6-1) ...
Selecting previously unselected package libdrm-dev:amd64.
Preparing to unpack .../libdrm-dev_2.4.91-2~16.04.1_amd64.deb ...
Unpacking libdrm-dev:amd64 (2.4.91-2~16.04.1) ...
Selecting previously unselected package libgdk-pixbuf2.0-dev.
Preparing to unpack .../libgdk-pixbuf2.0-dev_2.32.2-1ubuntu1.5_amd64.deb ...
Unpacking libgdk-pixbuf2.0-dev (2.32.2-1ubuntu1.5) ...
Selecting previously unselected package libharfbuzz-gobject0:amd64.
Preparing to unpack .../libharfbuzz-gobject0_1.0.1-1ubuntu0.1_amd64.deb ...
Unpacking libharfbuzz-gobject0:amd64 (1.0.1-1ubuntu0.1) ...
Selecting previously unselected package libharfbuzz-dev.
Preparing to unpack .../libharfbuzz-dev_1.0.1-1ubuntu0.1_amd64.deb ...
Unpacking libharfbuzz-dev (1.0.1-1ubuntu0.1) ...
Selecting previously unselected package libxft-dev.
Preparing to unpack .../libxft-dev_2.3.2-1_amd64.deb ...
Unpacking libxft-dev (2.3.2-1) ...
Selecting previously unselected package libpango1.0-dev.
Preparing to unpack .../libpango1.0-dev_1.38.1-1_amd64.deb ...
Unpacking libpango1.0-dev (1.38.1-1) ...
Selecting previously unselected package x11proto-xinerama-dev.
Preparing to unpack .../x11proto-xinerama-dev_1.2.1-2_all.deb ...
Unpacking x11proto-xinerama-dev (1.2.1-2) ...
Selecting previously unselected package libxinerama-dev:amd64.
Preparing to unpack .../libxinerama-dev_2%3a1.1.3-1_amd64.deb ...
Unpacking libxinerama-dev:amd64 (2:1.1.3-1) ...
Selecting previously unselected package x11proto-fixes-dev.
Preparing to unpack .../x11proto-fixes-dev_1%3a5.0-2ubuntu2_all.deb ...
Unpacking x11proto-fixes-dev (1:5.0-2ubuntu2) ...
Selecting previously unselected package libxfixes-dev:amd64.
Preparing to unpack .../libxfixes-dev_1%3a5.0.1-2_amd64.deb ...
Unpacking libxfixes-dev:amd64 (1:5.0.1-2) ...
Selecting previously unselected package libxi-dev.
Preparing to unpack .../libxi-dev_2%3a1.7.6-1_amd64.deb ...
Unpacking libxi-dev (2:1.7.6-1) ...
Selecting previously unselected package x11proto-randr-dev.
Preparing to unpack .../x11proto-randr-dev_1.5.0-1_all.deb ...
Unpacking x11proto-randr-dev (1.5.0-1) ...
Selecting previously unselected package libxrandr-dev:amd64.
Preparing to unpack .../libxrandr-dev_2%3a1.5.0-1_amd64.deb ...
Unpacking libxrandr-dev:amd64 (2:1.5.0-1) ...
Selecting previously unselected package libxcursor-dev:amd64.
Preparing to unpack .../libxcursor-dev_1%3a1.1.14-1ubuntu0.16.04.2_amd64.deb ...
Unpacking libxcursor-dev:amd64 (1:1.1.14-1ubuntu0.16.04.2) ...
Selecting previously unselected package x11proto-composite-dev.
Preparing to unpack .../x11proto-composite-dev_1%3a0.4.2-2_all.deb ...
Unpacking x11proto-composite-dev (1:0.4.2-2) ...
Selecting previously unselected package libxcomposite-dev.
Preparing to unpack .../libxcomposite-dev_1%3a0.4.4-1_amd64.deb ...
Unpacking libxcomposite-dev (1:0.4.4-1) ...
Selecting previously unselected package x11proto-damage-dev.
Preparing to unpack .../x11proto-damage-dev_1%3a1.2.1-2_all.deb ...
Unpacking x11proto-damage-dev (1:1.2.1-2) ...
Selecting previously unselected package libxdamage-dev:amd64.
Preparing to unpack .../libxdamage-dev_1%3a1.1.4-2_amd64.deb ...
Unpacking libxdamage-dev:amd64 (1:1.1.4-2) ...
Selecting previously unselected package libxml2-utils.
Preparing to unpack .../libxml2-utils_2.9.3+dfsg1-1ubuntu0.6_amd64.deb ...
Unpacking libxml2-utils (2.9.3+dfsg1-1ubuntu0.6) ...
Selecting previously unselected package libgtk2.0-dev.
Preparing to unpack .../libgtk2.0-dev_2.24.30-1ubuntu1.16.04.2_amd64.deb ...
Unpacking libgtk2.0-dev (2.24.30-1ubuntu1.16.04.2) ...
Selecting previously unselected package libsys-hostname-long-perl.
Preparing to unpack .../libsys-hostname-long-perl_1.5-1_all.deb ...
Unpacking libsys-hostname-long-perl (1.5-1) ...
Selecting previously unselected package libmail-sendmail-perl.
Preparing to unpack .../libmail-sendmail-perl_0.79.16-1_all.deb ...
Unpacking libmail-sendmail-perl (0.79.16-1) ...
Selecting previously unselected package libswscale-dev:amd64.
Preparing to unpack .../libswscale-dev_7%3a2.8.15-0ubuntu0.16.04.1_amd64.deb ...
Unpacking libswscale-dev:amd64 (7:2.8.15-0ubuntu0.16.04.1) ...
Selecting previously unselected package libusb-1.0-0-dev:amd64.
Preparing to unpack .../libusb-1.0-0-dev_2%3a1.0.20-1_amd64.deb ...
Unpacking libusb-1.0-0-dev:amd64 (2:1.0.20-1) ...
Selecting previously unselected package libusb-1.0-doc.
Preparing to unpack .../libusb-1.0-doc_2%3a1.0.20-1_all.deb ...
Unpacking libusb-1.0-doc (2:1.0.20-1) ...
Selecting previously unselected package libva-drm1:amd64.
Preparing to unpack .../libva-drm1_1.7.0-1ubuntu0.1_amd64.deb ...
Unpacking libva-drm1:amd64 (1.7.0-1ubuntu0.1) ...
Selecting previously unselected package libva-egl1:amd64.
Preparing to unpack .../libva-egl1_1.7.0-1ubuntu0.1_amd64.deb ...
Unpacking libva-egl1:amd64 (1.7.0-1ubuntu0.1) ...
Selecting previously unselected package libva-x11-1:amd64.
Preparing to unpack .../libva-x11-1_1.7.0-1ubuntu0.1_amd64.deb ...
Unpacking libva-x11-1:amd64 (1.7.0-1ubuntu0.1) ...
Selecting previously unselected package libva-glx1:amd64.
Preparing to unpack .../libva-glx1_1.7.0-1ubuntu0.1_amd64.deb ...
Unpacking libva-glx1:amd64 (1.7.0-1ubuntu0.1) ...
Selecting previously unselected package libva-tpi1:amd64.
Preparing to unpack .../libva-tpi1_1.7.0-1ubuntu0.1_amd64.deb ...
Unpacking libva-tpi1:amd64 (1.7.0-1ubuntu0.1) ...
Selecting previously unselected package libva-wayland1:amd64.
Preparing to unpack .../libva-wayland1_1.7.0-1ubuntu0.1_amd64.deb ...
Unpacking libva-wayland1:amd64 (1.7.0-1ubuntu0.1) ...
Selecting previously unselected package libwayland-bin.
Preparing to unpack .../libwayland-bin_1.12.0-1~ubuntu16.04.3_amd64.deb ...
Unpacking libwayland-bin (1.12.0-1~ubuntu16.04.3) ...
Selecting previously unselected package libwayland-dev:amd64.
Preparing to unpack .../libwayland-dev_1.12.0-1~ubuntu16.04.3_amd64.deb ...
Unpacking libwayland-dev:amd64 (1.12.0-1~ubuntu16.04.3) ...
Selecting previously unselected package libset-scalar-perl.
Preparing to unpack .../libset-scalar-perl_1.29-1_all.deb ...
Unpacking libset-scalar-perl (1.29-1) ...
Selecting previously unselected package libva-dev:amd64.
Preparing to unpack .../libva-dev_1.7.0-1ubuntu0.1_amd64.deb ...
Unpacking libva-dev:amd64 (1.7.0-1ubuntu0.1) ...
Selecting previously unselected package libx11-doc.
Preparing to unpack .../libx11-doc_2%3a1.6.3-1ubuntu2.1_all.deb ...
Unpacking libx11-doc (2:1.6.3-1ubuntu2.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for doc-base (0.10.7) ...
Processing 5 added doc-base files...
Processing triggers for libglib2.0-0:amd64 (2.48.2-0ubuntu4.1) ...
Setting up cmake-data (3.5.1-1ubuntu3) ...
Setting up libjsoncpp1:amd64 (1.7.2-1) ...
Setting up cmake (3.5.1-1ubuntu3) ...
Setting up libpcrecpp0v5:amd64 (2:8.38-3.1) ...
Setting up autotools-dev (20150820.1) ...
Setting up po-debconf (1.0.19) ...
Setting up libfile-stripnondeterminism-perl (0.015-1) ...
Setting up gir1.2-gtk-2.0 (2.24.30-1ubuntu1.16.04.2) ...
Setting up libpcre32-3:amd64 (2:8.38-3.1) ...
Setting up libpcre3-dev:amd64 (2:8.38-3.1) ...
Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Setting up libglib2.0-dev (2.48.2-0ubuntu4.1) ...
Setting up libatk1.0-dev (2.18.0-1) ...
Setting up libavutil-dev:amd64 (7:2.8.15-0ubuntu0.16.04.1) ...
Setting up libswresample-dev:amd64 (7:2.8.15-0ubuntu0.16.04.1) ...
Setting up libavcodec-dev:amd64 (7:2.8.15-0ubuntu0.16.04.1) ...
Setting up libavformat-dev:amd64 (7:2.8.15-0ubuntu0.16.04.1) ...
Setting up libcairo-script-interpreter2:amd64 (1.14.6-1) ...
Setting up libexpat1-dev:amd64 (2.1.0-7ubuntu0.16.04.3) ...
Setting up libpng12-dev:amd64 (1.2.54-1ubuntu1.1) ...
Setting up libfreetype6-dev:amd64 (2.6.1-0.1ubuntu2.3) ...
Setting up libfontconfig1-dev:amd64 (2.11.94-0ubuntu1.1) ...
Setting up xorg-sgml-doctools (1:1.11-1) ...
Setting up x11proto-core-dev (7.0.31-1~ubuntu16.04.2) ...
Setting up libxau-dev:amd64 (1:1.0.8-1) ...
Setting up libxdmcp-dev:amd64 (1:1.1.2-1.1) ...
Setting up x11proto-input-dev (2.3.1-1) ...
Setting up x11proto-kb-dev (1.0.7-0ubuntu1) ...
Setting up xtrans-dev (1.3.5-1) ...
Setting up libpthread-stubs0-dev:amd64 (0.3-4) ...
Setting up libxcb1-dev:amd64 (1.11.1-1ubuntu1) ...
Setting up libx11-dev:amd64 (2:1.6.3-1ubuntu2.1) ...
Setting up x11proto-render-dev (2:0.11.1-2) ...
Setting up libxrender-dev:amd64 (1:0.9.9-0ubuntu1) ...
Setting up x11proto-xext-dev (7.3.0-1) ...
Setting up libxext-dev:amd64 (2:1.3.3-1) ...
Setting up libice-dev:amd64 (2:1.0.9-1) ...
Setting up libsm-dev:amd64 (2:1.2.2-1) ...
Setting up libpixman-1-dev (0.33.6-1) ...
Setting up libxcb-render0-dev:amd64 (1.11.1-1ubuntu1) ...
Setting up libxcb-shm0-dev:amd64 (1.11.1-1ubuntu1) ...
Setting up libcairo2-dev (1.14.6-1) ...
Setting up libdrm-dev:amd64 (2.4.91-2~16.04.1) ...
Setting up libgdk-pixbuf2.0-dev (2.32.2-1ubuntu1.5) ...
Setting up libharfbuzz-gobject0:amd64 (1.0.1-1ubuntu0.1) ...
Setting up libharfbuzz-dev (1.0.1-1ubuntu0.1) ...
Setting up libxft-dev (2.3.2-1) ...
Setting up libpango1.0-dev (1.38.1-1) ...
Setting up x11proto-xinerama-dev (1.2.1-2) ...
Setting up libxinerama-dev:amd64 (2:1.1.3-1) ...
Setting up x11proto-fixes-dev (1:5.0-2ubuntu2) ...
Setting up libxfixes-dev:amd64 (1:5.0.1-2) ...
Setting up libxi-dev (2:1.7.6-1) ...
Setting up x11proto-randr-dev (1.5.0-1) ...
Setting up libxrandr-dev:amd64 (2:1.5.0-1) ...
Setting up libxcursor-dev:amd64 (1:1.1.14-1ubuntu0.16.04.2) ...
Setting up x11proto-composite-dev (1:0.4.2-2) ...
Setting up libxcomposite-dev (1:0.4.4-1) ...
Setting up x11proto-damage-dev (1:1.2.1-2) ...
Setting up libxdamage-dev:amd64 (1:1.1.4-2) ...
Setting up libxml2-utils (2.9.3+dfsg1-1ubuntu0.6) ...
Setting up libgtk2.0-dev (2.24.30-1ubuntu1.16.04.2) ...
Setting up libsys-hostname-long-perl (1.5-1) ...
Setting up libmail-sendmail-perl (0.79.16-1) ...
Setting up libswscale-dev:amd64 (7:2.8.15-0ubuntu0.16.04.1) ...
Setting up libusb-1.0-0-dev:amd64 (2:1.0.20-1) ...
Setting up libusb-1.0-doc (2:1.0.20-1) ...
Setting up libva-drm1:amd64 (1.7.0-1ubuntu0.1) ...
Setting up libva-egl1:amd64 (1.7.0-1ubuntu0.1) ...
Setting up libva-x11-1:amd64 (1.7.0-1ubuntu0.1) ...
Setting up libva-glx1:amd64 (1.7.0-1ubuntu0.1) ...
Setting up libva-tpi1:amd64 (1.7.0-1ubuntu0.1) ...
Setting up libva-wayland1:amd64 (1.7.0-1ubuntu0.1) ...
Setting up libwayland-bin (1.12.0-1~ubuntu16.04.3) ...
Setting up libwayland-dev:amd64 (1.12.0-1~ubuntu16.04.3) ...
Setting up libset-scalar-perl (1.29-1) ...
Setting up libva-dev:amd64 (1.7.0-1ubuntu0.1) ...
Setting up libx11-doc (2:1.6.3-1ubuntu2.1) ...
Setting up dh-strip-nondeterminism (0.015-1) ...
Setting up debhelper (9.20160115ubuntu3) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
strong@foreverstrong:~/Downloads/l_openvino_toolkit_p_2018.4.420$

Install the Intel® Distribution of OpenVINO™ toolkit core components

If you have a previous version of the toolkit installed, rename or delete two directories:

/home/<user>/inference_engine_samples
/home/<user>/openvino_models

To install the Intel Distribution of OpenVINO toolkit core components:

(1) Choose one of the installation options below and run the related script with root or regular user privileges. The default installation directory path depends on the privileges you choose for the installation.
You can use either a GUI installation wizard or command-line instructions. The only difference between the two options is that the command-line instructions are text-based. This means that instead of clicking options in a GUI, command-line prompts ask for input on a text screen.

Use only one of these options:

  • Option 1: GUI Installation Wizard:
sudo ./install_GUI.sh
  • Option 2: Command-line Instructions:
sudo ./install.sh

(2) Follow the instructions on your screen. Watch for informational messages such as the following in case you must complete additional steps:

在這裏插入圖片描述

(3) If needed, change the components you want to install or the installation directory. Pay attention to the installation directory, because you will need this information later. If you select the default options, the Installation summary GUI screen looks as follows:

在這裏插入圖片描述

  • If you used root privileges to run the installer, it installs the Intel Distribution of OpenVINO toolkit in this directory: /opt/intel/computer_vision_sdk_/.
    For simplicity, a symbolic link to the latest installation is also created: /opt/intel/computer_vision_sdk/

  • If you used regular user privileges to run the installer, it installs the Intel Distribution of OpenVINO toolkit in this directory: /home//intel/computer_vision_sdk_/
    For simplicity, a symbolic link to the latest installation is also created: /home//intel/computer_vision_sdk/

(4) A Complete screen indicates the installation is finished. Write down the version number of the software beginning with the year. You will need this information later in the document.

在這裏插入圖片描述

The core components are installed. Continue to the next section to set the environment variables.

Set the environment variables

You must update several environment variables before you can compile and run OpenVINO™ applications. Run the following script to temporarily set your environment variables:

source /opt/intel/computer_vision_sdk/bin/setupvars.sh

(Optional) The Intel Distribution of OpenVINO toolkit environment variables are removed when you close the shell.
As an option, you can permanently set the environment variables as follows:

  1. Open the .bashrc file in <user_directory>:
	vi <user_directory>/.bashrc
  1. Add this line to the end of the file:
	source /opt/intel/computer_vision_sdk/bin/setupvars.sh
  1. Save and close the file: press the Esc key and type :wq.
  2. To test your change, open a new terminal. You will see [setupvars.sh] OpenVINO environment initialized

The environment variables are set. Continue to the next section to configure the Model Optimizer.

Configure the Model Optimizer

Important: This section is required. You must configure the Model Optimizer for at least one framework. The Model Optimizer will fail if you do not complete the steps in this section.

The Model Optimizer is a key component of the Intel Distribution of OpenVINO toolkit. You cannot do inference on your trained model without running the model through the Model Optimizer. When you run a pre-trained model through the Model Optimizer, your output is an Intermediate Representation (IR) of the network. The IR is a pair of files that describe the whole model:

  • .xml: Describes the network topology
  • .bin: Contains the weights and biases binary data

The Inference Engine reads, loads, and infers the IR files, using a common API across the CPU, GPU, or VPU hardware.

The Model Optimizer is a Python*-based command line tool (mo.py), which is located in /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer.

Use this tool on models trained with popular deep learning frameworks such as Caffe*, TensorFlow*, MXNet*, and ONNX* to convert them to an optimized IR format that the Inference Engine can use.

This section explains how to use scripts to configure the Model Optimizer either for all of the supported frameworks at the same time or for individual frameworks. If you want to manually configure the Model Optimizer instead of using scripts, see the using manual configuration process section in the Model Optimizer Developer Guide.

For more information about the Model Optimizer, see the Model Optimizer Developer Guide.

Model Optimizer configuration steps

You can either configure the Model Optimizer for all supported frameworks at once, or for one framework at a time. Choose the option that best suits your needs. If you see error messages, make sure you installed all dependencies.

Note: If you did not install the Intel Distribution of OpenVINO toolkit to the default installation directory, replace /intel/ with the directory where you installed the software to.

Option 1: Configure the Model Optimizer for all supported frameworks at the same time:

(1) Go to the Model Optimizer prerequisites directory:

cd /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites

(2) Run the script to configure the Model Optimizer for Caffe, TensorFlow, MXNet, Kaldi*, and ONNX:

sudo ./install_prerequisites.sh
strong@foreverstrong:~$ cd /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/
strong@foreverstrong:/opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites$ ll
total 32
drwxr-xr-x 2 root root 4096 11月 20 09:17 ./
drwxr-xr-x 6 root root 4096 11月 20 09:17 ../
-rwxr-xr-x 1 root root  638 11月 20 09:17 install_prerequisites_caffe.sh*
-rwxr-xr-x 1 root root  638 11月 20 09:17 install_prerequisites_kaldi.sh*
-rwxr-xr-x 1 root root  638 11月 20 09:17 install_prerequisites_mxnet.sh*
-rwxr-xr-x 1 root root  636 11月 20 09:17 install_prerequisites_onnx.sh*
-rwxr-xr-x 1 root root 2852 11月 20 09:17 install_prerequisites.sh*
-rwxr-xr-x 1 root root  635 11月 20 09:17 install_prerequisites_tf.sh*
strong@foreverstrong:/opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites$ ./install_prerequisites.sh
[sudo] password for strong: 
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]                  
Hit:2 http://cn.archive.ubuntu.com/ubuntu xenial InRelease                                  
Get:3 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]             
Get:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.7 kB]
Get:5 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]           
Get:6 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [68.0 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [108 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [145 kB]        
Get:9 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [883 kB]             
Get:10 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [785 kB]                                                         
Get:11 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [320 kB]                                                 
Get:12 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [235 kB]                                                    
Get:13 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [704 kB]                                                    
Get:14 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [645 kB]                                                     
Get:15 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [247 kB]                                             
Get:16 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [335 kB]                                                
Get:17 http://cn.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,964 B]                                          
Get:18 http://cn.archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 kB]                                             
Get:19 http://cn.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]                                              
Get:20 http://cn.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,100 B]                                          
Fetched 4,895 kB in 8s (602 kB/s)                                                                                                             
Reading package lists... Done
Building dependency tree       
Reading state information... Done
23 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libllvm4.0
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libpython3-dev libpython3.5-dev python-pip-whl python3-dev python3-setuptools python3-wheel python3.5-dev python3.5-venv
Suggested packages:
  python-setuptools-doc
The following NEW packages will be installed:
  libgfortran3 libpython3-dev libpython3.5-dev python-pip-whl python3-dev python3-pip python3-setuptools python3-venv python3-wheel python3.5-dev python3.5-venv
0 upgraded, 11 newly installed, 0 to remove and 23 not upgraded.
Need to get 39.4 MB of archives.
After this operation, 57.8 MB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgfortran3 amd64 5.4.0-6ubuntu1~16.04.10 [260 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython3.5-dev amd64 3.5.2-2ubuntu0~16.04.5 [37.3 MB]
Get:3 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libpython3-dev amd64 3.5.1-3 [6,926 B]                                                                
Get:4 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-pip-whl all 8.1.1-2ubuntu0.4 [1,110 kB]                                            
Get:5 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3.5-dev amd64 3.5.2-2ubuntu0~16.04.5 [413 kB]                                           
Get:6 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 python3-dev amd64 3.5.1-3 [1,186 B]                                                                   
Get:7 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python3-pip all 8.1.1-2ubuntu0.4 [109 kB]                                                 
Get:8 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 python3-setuptools all 20.7.0-1 [88.0 kB]                                                             
Get:9 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python3.5-venv amd64 3.5.2-2ubuntu0~16.04.5 [5,994 B]                                     
Get:10 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 python3-venv amd64 3.5.1-3 [1,106 B]                                                             
Get:11 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 python3-wheel all 0.29.0-1 [48.1 kB]                                                             
Fetched 39.4 MB in 18s (2,177 kB/s)                                                                                                                               
Selecting previously unselected package libgfortran3:amd64.
(Reading database ... 254810 files and directories currently installed.)
Preparing to unpack .../libgfortran3_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libgfortran3:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libpython3.5-dev:amd64.
Preparing to unpack .../libpython3.5-dev_3.5.2-2ubuntu0~16.04.5_amd64.deb ...
Unpacking libpython3.5-dev:amd64 (3.5.2-2ubuntu0~16.04.5) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../libpython3-dev_3.5.1-3_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.5.1-3) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../python-pip-whl_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python-pip-whl (8.1.1-2ubuntu0.4) ...
Selecting previously unselected package python3.5-dev.
Preparing to unpack .../python3.5-dev_3.5.2-2ubuntu0~16.04.5_amd64.deb ...
Unpacking python3.5-dev (3.5.2-2ubuntu0~16.04.5) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../python3-dev_3.5.1-3_amd64.deb ...
Unpacking python3-dev (3.5.1-3) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../python3-pip_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python3-pip (8.1.1-2ubuntu0.4) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../python3-setuptools_20.7.0-1_all.deb ...
Unpacking python3-setuptools (20.7.0-1) ...
Selecting previously unselected package python3.5-venv.
Preparing to unpack .../python3.5-venv_3.5.2-2ubuntu0~16.04.5_amd64.deb ...
Unpacking python3.5-venv (3.5.2-2ubuntu0~16.04.5) ...
Selecting previously unselected package python3-venv.
Preparing to unpack .../python3-venv_3.5.1-3_amd64.deb ...
Unpacking python3-venv (3.5.1-3) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../python3-wheel_0.29.0-1_all.deb ...
Unpacking python3-wheel (0.29.0-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /opt/intel/common/mdf/lib64/igfxcmrt64.so is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-x11.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-drm.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libmfxhw64.so.1 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libmfx.so.1 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-glx.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libigdgmm.so.1 is not a symbolic link

Processing triggers for man-db (2.7.5-1) ...
Setting up libgfortran3:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libpython3.5-dev:amd64 (3.5.2-2ubuntu0~16.04.5) ...
Setting up libpython3-dev:amd64 (3.5.1-3) ...
Setting up python-pip-whl (8.1.1-2ubuntu0.4) ...
Setting up python3.5-dev (3.5.2-2ubuntu0~16.04.5) ...
Setting up python3-dev (3.5.1-3) ...
Setting up python3-pip (8.1.1-2ubuntu0.4) ...
Setting up python3-setuptools (20.7.0-1) ...
Setting up python3.5-venv (3.5.2-2ubuntu0~16.04.5) ...
Setting up python3-venv (3.5.1-3) ...
Setting up python3-wheel (0.29.0-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /opt/intel/common/mdf/lib64/igfxcmrt64.so is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-x11.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-drm.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libmfxhw64.so.1 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libmfx.so.1 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-glx.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libigdgmm.so.1 is not a symbolic link

The directory '/home/strong/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/strong/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting tensorflow==1.9.0 (from -r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/fd/f7/934f351b5d814a0c883b7cbc9ce9cb6244d387f8bf065ddb28301f1488da/tensorflow-1.9.0-cp35-cp35m-manylinux1_x86_64.whl (51.1MB)
    100% |████████████████████████████████| 51.1MB 46kB/s 
Collecting mxnet==1.0.0 (from -r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/b7/92/0ece8987a1f02a01d5b9fa3f04b9de24b5c696171a85cb30ba45ca3bd685/mxnet-1.0.0-py2.py3-none-manylinux1_x86_64.whl (27.0MB)
    100% |████████████████████████████████| 27.0MB 81kB/s 
Collecting networkx>=1.11 (from -r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/f3/f4/7e20ef40b118478191cec0b58c3192f822cace858c19505c7670961b76b2/networkx-2.2.zip (1.7MB)
    100% |████████████████████████████████| 1.7MB 1.2MB/s 
Collecting numpy>=1.12.0 (from -r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/86/04/bd774106ae0ae1ada68c67efe89f1a16b2aa373cc2db15d974002a9f136d/numpy-1.15.4-cp35-cp35m-manylinux1_x86_64.whl (13.8MB)
    100% |████████████████████████████████| 13.8MB 172kB/s 
Collecting protobuf==3.5.1 (from -r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/d6/c6/2761816c04e7261266b5327ae4ff64113b34f02790b38f056a49a741184e/protobuf-3.5.1-cp35-cp35m-manylinux1_x86_64.whl (6.4MB)
    100% |████████████████████████████████| 6.4MB 354kB/s 
Collecting onnx>=1.1.2 (from -r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/15/c9/48ebd8b63bfe59ec910eddd5fa46a67340b7d2d66de893a973f52961b905/onnx-1.3.0-cp35-cp35m-manylinux1_x86_64.whl (6.6MB)
    100% |████████████████████████████████| 6.7MB 375kB/s 
Collecting absl-py>=0.1.6 (from tensorflow==1.9.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/0c/63/f505d2d4c21db849cf80bad517f0065a30be6b006b0a5637f1b95584a305/absl-py-0.6.1.tar.gz (94kB)
    100% |████████████████████████████████| 102kB 2.8MB/s 
Requirement already satisfied (use --upgrade to upgrade): six>=1.10.0 in /usr/lib/python3/dist-packages (from tensorflow==1.9.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
Collecting grpcio>=1.8.6 (from tensorflow==1.9.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/90/b4/ce6b50cd30a07a13143eec055c9737573916327217fbe243e38856e2ab95/grpcio-1.16.1-cp35-cp35m-manylinux1_x86_64.whl (9.7MB)
    100% |████████████████████████████████| 9.7MB 243kB/s 
Collecting tensorboard<1.10.0,>=1.9.0 (from tensorflow==1.9.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/9e/1f/3da43860db614e294a034e42d4be5c8f7f0d2c75dc1c428c541116d8cdab/tensorboard-1.9.0-py3-none-any.whl (3.3MB)
    100% |████████████████████████████████| 3.3MB 661kB/s 
Collecting astor>=0.6.0 (from tensorflow==1.9.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/35/6b/11530768cac581a12952a2aad00e1526b89d242d0b9f59534ef6e6a1752f/astor-0.7.1-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools<=39.1.0 in /usr/lib/python3/dist-packages (from tensorflow==1.9.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): wheel>=0.26 in /usr/lib/python3/dist-packages (from tensorflow==1.9.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
Collecting gast>=0.2.0 (from tensorflow==1.9.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/5c/78/ff794fcae2ce8aa6323e789d1f8b3b7765f601e7702726f430e814822b96/gast-0.2.0.tar.gz
Collecting termcolor>=1.1.0 (from tensorflow==1.9.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
Collecting graphviz (from mxnet==1.0.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/1f/e2/ef2581b5b86625657afd32030f90cf2717456c1d2b711ba074bf007c0f1a/graphviz-0.10.1-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python3/dist-packages (from mxnet==1.0.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 2))
Collecting decorator>=4.3.0 (from networkx>=1.11->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/bc/bb/a24838832ba35baf52f32ab1a49b906b5f82fb7c76b2f6a7e35e140bac30/decorator-4.3.0-py2.py3-none-any.whl
Collecting typing>=3.6.4 (from onnx>=1.1.2->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/4a/bd/eee1157fc2d8514970b345d69cb9975dcd1e42cd7e61146ed841f6e68309/typing-3.6.6-py3-none-any.whl
Collecting typing-extensions>=3.6.2.1 (from onnx>=1.1.2->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/62/4f/392a1fa2873e646f5990eb6f956e662d8a235ab474450c72487745f67276/typing_extensions-3.6.6-py3-none-any.whl
Collecting werkzeug>=0.11.10 (from tensorboard<1.10.0,>=1.9.0->tensorflow==1.9.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
    100% |████████████████████████████████| 327kB 2.8MB/s 
Collecting markdown>=2.6.8 (from tensorboard<1.10.0,>=1.9.0->tensorflow==1.9.0->-r /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/../requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/7a/6b/5600647404ba15545ec37d2f7f58844d690baf2f81f3a60b862e48f29287/Markdown-3.0.1-py2.py3-none-any.whl (89kB)
    100% |████████████████████████████████| 92kB 2.9MB/s 
Installing collected packages: absl-py, numpy, grpcio, werkzeug, protobuf, markdown, tensorboard, astor, gast, termcolor, tensorflow, graphviz, mxnet, decorator, networkx, typing, typing-extensions, onnx
  Running setup.py install for absl-py ... done
  Running setup.py install for gast ... done
  Running setup.py install for termcolor ... done
  Running setup.py install for networkx ... done
Successfully installed absl-py-0.6.1 astor-0.7.1 decorator-4.3.0 gast-0.2.0 graphviz-0.10.1 grpcio-1.16.1 markdown-3.0.1 mxnet-1.0.0 networkx-2.2 numpy-1.15.4 onnx-1.3.0 protobuf-3.5.1 tensorboard-1.9.0 tensorflow-1.9.0 termcolor-1.1.0 typing-3.6.6 typing-extensions-3.6.6 werkzeug-0.14.1
You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[WARNING] All Model Optimizer dependencies are installed globally.
[WARNING] If you want to keep Model Optimizer in separate sandbox
[WARNING] run install_prerequisites.sh venv {caffe|tf|mxnet|kaldi|onnx}
strong@foreverstrong:/opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites$ 

Option 2: Configure the Model Optimizer for each framework separately:

(1) Go to the Model Optimizer prerequisites directory:

cd /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites

(2) Run the script for your model framework. You can run more than one script:

  • For Caffe:
sudo ./install_prerequisites_caffe.sh
  • For TensorFlow:
sudo ./install_prerequisites_tf.sh
  • For MXNet:
sudo ./install_prerequisites_mxnet.sh
  • For Kaldi:
sudo ./install_prerequisites_kaldi.sh
  • For ONNX:
sudo ./install_prerequisites_onnx.sh

The Model Optimizer is configured for one or more frameworks. If you want to use a GPU or VPU, read through the next section for additional steps. After that, you are ready to use two short demos to see the results of running the Intel Distribution of OpenVINO toolkit and to verify your installation was successful. The demo scripts are required since they perform additional configuration steps.

Optional Steps

Use these steps to prepare your computer for to use the Intel® Processor Graphics, Intel® Movidius™ Neural Compute Stick or Intel® Neural Compute Stick 2.

Additional installation steps for processor graphics (GPU)

Note: These steps are only required if you want to enable the toolkit components to utilize processor graphics (GPU) on your system.

(1) Go to the install_dependencies directory:

cd /opt/intel/computer_vision_sdk/install_dependencies/

(2) Enter the super user mode:

sudo -E su

(3) Check your kernel version. The minimum supported kernel is 4.14:

uname -r

Note: You can use a kernel at or above 4.14.

(4) If your kernel version is below 4.14, update it to the minimum of 4.14:

./install_4_14_kernel.sh

(5) Install the Intel® Graphics Compute Runtime for OpenCL™ Driver components required to use the GPU plugin and write custom layers for Intel® Integrated Graphics:

./install_NEO_OCL_driver.sh

Note: Two command-line suggestions display:
— Add OpenCL user to video group
— Run script to install the 4.14 kernel script
Both suggestions are incorrect. Disregard them and continue.

(6) Reboot the machine:

reboot

(7) (Optional) Install header files to allow compiling a new code. You can find the header files at KhronosGroup OpenCL-Headers.
https://github.com/KhronosGroup/OpenCL-Headers

Additional installation steps for the Intel® Movidius™ Neural Compute Stick and Intel® Neural Compute Stick 2

Note: These steps are only required if you want to perform inference on Intel® Movidius™ NCS powered by the Intel® Movidius™ Myriad™ 2 VPU or Intel® Neural Compute Stick 2 powered by the Intel® Movidius™ Myriad™ X VPU. See also the Get Started page: https://software.intel.com/en-us/neural-compute-stick/get-started

https://software.intel.com/en-us/neural-compute-stick/get-started

(1) Add the current Linux user to the users group:

sudo usermod -a -G users "$(whoami)"

(2) To perform inference on Intel® Movidius™ Neural Compute Stick and Intel® Neural Compute Stick 2, install the USB rules as follows:

cat <<EOF > 97-usbboot.rules
SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
EOF
sudo cp 97-usbboot.rules /etc/udev/rules.d/

sudo udevadm control --reload-rules

sudo udevadm trigger

sudo ldconfig

rm 97-usbboot.rules
strong@foreverstrong:~$ cd Downloads/
strong@foreverstrong:~/Downloads$ cat <<EOF > 97-usbboot.rules
> SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
> SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
> SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
> EOF
strong@foreverstrong:~/Downloads$ ll
total 1412060
drwxr-xr-x  3 strong strong       4096 11月 20 20:39 ./
drwxr-xr-x 19 strong strong       4096 11月 20 09:14 ../
-rw-rw-r--  1 strong strong        378 11月 20 20:39 97-usbboot.rules
drwxr-xr-x  4 strong strong       4096 11月 10 03:11 l_openvino_toolkit_p_2018.4.420/
-rwxrwxrwx  1 strong strong 1445927668 11月 19 22:40 l_openvino_toolkit_p_2018.4.420.tgz*
strong@foreverstrong:~/Downloads$ sudo cp 97-usbboot.rules /etc/udev/rules.d/
[sudo] password for strong: 
strong@foreverstrong:~/Downloads$ 
strong@foreverstrong:~/Downloads$ sudo udevadm control --reload-rules
strong@foreverstrong:~/Downloads$ 
strong@foreverstrong:~/Downloads$ sudo udevadm trigger
strong@foreverstrong:~/Downloads$ 
strong@foreverstrong:~/Downloads$ sudo ldconfig
/sbin/ldconfig.real: /opt/intel/common/mdf/lib64/igfxcmrt64.so is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-x11.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-drm.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libmfxhw64.so.1 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libmfx.so.1 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-glx.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libigdgmm.so.1 is not a symbolic link

strong@foreverstrong:~/Downloads$ 
strong@foreverstrong:~/Downloads$ rm 97-usbboot.rules
strong@foreverstrong:~/Downloads$

Continue to the next section to use short demos to see the results of running Intel Distribution of OpenVINO toolkit and to verify your installation was successful. The demo scripts are required since they perform additional configuration steps.

Use the Demo Scripts to Verify Your Installation

Important: This section is required. In addition to confirming that your installation was successful, the demo scripts perform additional steps, such as setting up your computer to use the Model Optimizer samples.

Note: To run the demo applications on Intel® Processor Graphics, Intel® Movidius™ Neural Compute Stick or Intel® Neural Compute Stick 2, make sure you completed the Additional Installation Steps first.

To learn more about the demo applications, see README.txt in /opt/intel/computer_vision_sdk/deployment_tools/demo/.

For detailed description of the pre-trained object detection and object recognition models, go to /opt/intel/computer_vision_sdk/deployment_tools/intel_models/ and open index.html.

Note:
The paths in this section assume you used the default installation directory to install the Intel Distribution of OpenVINO toolkit. If you installed the software to a directory other than /opt/intel/, update the directory path with the location where you installed the toolkit to.
If you installed the product as a root user, you must switch to the root mode before you continue: sudo -i

Run the Image Classification demo

(1) Go to the Inference Engine demo directory:

cd /opt/intel/computer_vision_sdk/deployment_tools/demo

(2) Run the Image Classification demo:

./demo_squeezenet_download_convert_run.sh

The Image Classification demo uses the Model Optimizer to convert a SqueezeNet model to .bin and .xml Intermediate Representation (IR) files. The Inference Engine component uses these files.

For a brief description of the Intermediate Representation .bin and .xml files, see Configuring the Model Optimizer.

This demo creates the directory /home/<user>/inference_engine_samples/.

This demo uses car.png in the demo directory. When the demo completes, you will see the label and confidence for the top-10 categories:

在這裏插入圖片描述

This demo is complete. Continue to the next section to run the Inference Pipeline demo.

Run the Inference Pipeline demo

(1) While still in /opt/intel/computer_vision_sdk/deployment_tools/demo/, run the Inference Pipeline demo:

./demo_security_barrier_camera.sh

This demo uses car.png in /opt/intel/computer_vision_sdk/deployment_tools/demo/ to show an inference pipeline. This demo uses three pre-trained models. The demo uses vehicle recognition in which vehicle attributes build on each other to narrow in on a specific attribute.
The demo works as follows:

  • An object is identified as a vehicle.
  • This identification is used as input to the next model, which identifies specific vehicle attributes, including the license plate.
  • The attributes identified as the license plate are used as input to the third model, which recognizes specific characters in the license plate.

For more information about the demo, see the Security Camera Sample.
https://software.intel.com/en-us/articles/OpenVINO-IE-Samples#security-barrier-camera

(2) When the demo completes, two windows are open:

  • A console window that displays information about the tasks performed by the demo
  • An image viewer window that displays a picture similar to the following:

在這裏插入圖片描述

(3) Close the image viewer screen to end the demo.

In this section, you saw a preview of the Intel Distribution of OpenVINO toolkit capabilities.

Your have completed all required installation, configuration, and build steps in this guide to use your CPU, GPU or VPU to work with your trained models.

Note: If you are migrating from the Intel® Computer Vision SDK 2017 R3 Beta version to the Intel Distribution of OpenVINO toolkit, read this information about porting your applications.
How to port your application from Intel® Computer Vision SDK 2017 R3 Beta to OpenVINO™ Toolkit.
https://software.intel.com/en-us/blogs/2018/05/14/how-to-port-your-application-from-intelr-computer-vision-sdk-2017-r3-beta-to-intelr

Summary

In this document, you installed the Intel Distribution of OpenVINO toolkit and the external dependencies. In addition, you might have installed a driver that will let you use a GPU to infer your models.

After the software was installed, you ran two demo applications to compile the extensions library and configured the Model Optimizer for one or more frameworks.

You are now ready to learn more about converting models trained with popular deep learning frameworks to the Inference Engine format, following the links below, or you can move on to running the sample applications.

To learn more about converting models, go to:

Additional Resources

Intel Distribution of OpenVINO Toolkit home page
https://software.intel.com/en-us/openvino-toolkit

Intel Distribution of OpenVINO Toolkit documentation
https://software.intel.com/en-us/openvino-toolkit/documentation/featured

Intel Distribution of OpenVINO Toolkit Hello World Activities, see the Inference Tutorials for Face Detection and Car Detection Exercises.
https://github.com/intel-iot-devkit/inference-tutorials-generic

Intel® Neural Compute Stick 2 Get Started page
https://software.intel.com/en-us/neural-compute-stick/get-started

For more complete information about compiler optimizations, see our Optimization Notice.
https://software.intel.com/en-us/articles/optimization-notice

Wordbook

Intel® Deep Learning Deployment Toolkit,Intel® DLDT
Intermediate Representation,IR

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章