“This is the 24th day of my participation in the First Challenge 2022. For details: First Challenge 2022”
Please follow my official account [Jizhi Vision] for more notes to share
Hi, I’m Jizhi Vision. This article details how to install OpenVino on Ubuntu.
1, the clone openvino
git clone --recursive https://gitee.com/openvinotoolkit-prc/openvino.git
Copy the code
If clone times out when some three parties depend on external chain, clone can be transferred to Gitee separately.
2, compile,
Install dependencies:
chmod +x install_build_dependencies.sh
./install_build_dependencies.sh
Copy the code
Compile:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CLDNN=OFF ..
make -j32
make install -j32
Copy the code
3. Install the Python interface
cd inference-engine/ie_bridges/python/src
pip install -i https://pypi.douban.com/simple -r requirements-dev.txt
Copy the code
Then go back to Step 2 and add the compilation option -denable_python =ON to recompile. To specify a specific Python version:
-dpython_executable = 'which python3.7' \ -dpython_library =/usr/lib/x86_64-linux-gnu/ libpython3.7m.so\ - DPYTHON_INCLUDE_DIR = / usr/include/python3.7Copy the code
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CLDNN=OFF -DENABLE_PYTHON=ON ..
make -j32
make install -j32
Copy the code
Verify after compiling:
python
>>> import openvino
Copy the code
If no error message is displayed, the OpenVino Python interface is successfully installed.
4, clone open_model_zoo
git clone --recursive https://github.com/openvinotoolkit/open_model_zoo.git
Copy the code
5, test,
cd openvino/scripts/demo
./demo_squeezenet_download_convert_run.sh
Copy the code
Open_model_zoo = open_model_zoo = open_model_zoo = open_model_zoo = open_model_zoo
The successful output would look something like this.
Ok, I have shared with you how to configure Ubuntu and how to use OpenVino. I hope my sharing can help you a little bit.
[Public Account transmission]
Using OpenVino for Ubuntu