Running OpenVINO _ x86 _ Ubuntu
################
# Installation #
################
### Installation ###
# Install packages for package downloading
sudo apt install -y curl git wget
### Install Intel iGPU driver ###
### Latest released could be found: https://github.com/intel/compute-runtime/releases
cd ~
mkdir neo
cd neo
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.12812.26/intel-igc-core_1.0.12812.26_amd64.deb
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.12812.26/intel-igc-opencl_1.0.12812.26_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/22.53.25242.13/intel-level-zero-gpu-dbgsym_1.3.25242.13_amd64.ddeb
wget https://github.com/intel/compute-runtime/releases/download/22.53.25242.13/intel-level-zero-gpu_1.3.25242.13_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/22.53.25242.13/intel-opencl-icd-dbgsym_22.53.25242.13_amd64.ddeb
wget https://github.com/intel/compute-runtime/releases/download/22.53.25242.13/intel-opencl-icd_22.53.25242.13_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/22.53.25242.13/libigdgmm12_22.3.0_amd64.deb
sudo dpkg -i *.deb
### Download Conda from Webiste https://www.anaconda.com/products/distribution
### Ref: https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html
wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
bash Anaconda3-2022.10-Linux-x86_64.sh
# yes
# ENTER
# yes
sudo reboot
### Create Conda virtual environment
conda create -n openvino python=3.8
# y
conda activate openvino
# conda deactivate to leave virtual environment
### Install OpenVINO 2022.2 + opencv-python 4.6.0.66 (!!! camera issue with opencv-python 4.7)
python -m pip install --upgrade pip
pip install openvino-dev[caffe,tensorflow2,ONNX,kaldi,mxnet,pytorch]==2022.2.0
pip install opencv-python==4.6.0.66
### Download OpenVINO Zoo
cd ~
mkdir openvino && cd $HOME/openvino
git clone https://github.com/openvinotoolkit/open_model_zoo.git
### Download pre-trained model for Open Model Zoo demos
# Using face Recognition demo as an example, e.g., /home/dvt/openvino/open_model_zoo/demos/face_recognition_demo/python
cd $HOME/openvino
mkdir IR_model && cd IR_model
# copy models.lst from demo folder to IR_model\
cp ../open_model_zoo/demos/face_recognition_demo/python/models.lst .
omz_downloader --list models.lst
# y
omz_converter --list models.lst
#
###############################
# Run Demo : Face Recognition #
###############################
mkdir $HOME/openvino/face_photo_gallery
# Make sure inside the virtual environment
conda activate openvino
python $HOME/openvino/open_model_zoo/demos/face_recognition_demo/python/face_recognition_demo.py \
-i 0 -d_fd GPU -d_lm GPU -d_reid GPU \
-m_fd $HOME/openvino/IR_model/intel/face-detection-retail-0004/FP16-INT8/face-detection-retail-0004.xml \
-m_lm $HOME/openvino/IR_model/intel/landmarks-regression-retail-0009/FP16-INT8/landmarks-regression-retail-0009.xml \
-m_reid $HOME/openvino/IR_model/intel/face-reidentification-retail-0095/FP16-INT8/face-reidentification-retail-0095.xml \
-fg $HOME/openvino/face_photo_gallery
Last updated