目录
Anaconda | The World's Most Popular Data Science Platform
- sudo apt-get update
- # sudo apt-get clean
- # sudo nano / etc/ apt/ sources.list 把国内清华源加里面:https://www.louishe.com/2021/12/08/doc-11364.html
- # 如果要换DNS:sudo vi /etc/resolv.conf
-
- sudo apt install libopencv-dev
- pip install opencv-python
-
- # 如果pip无法安装,则通过编译安装:https://linuxize.com/post/how-to-install-opencv-on-ubuntu-20-04/
-
- pip3 install torch==1.10.1+cu113 torchvision==0.11.2+cu113 torchaudio==0.10.1+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
-
- python3.9 -m pip install openvino-dev pytorch
Install and Configure Intel® Distribution of OpenVINO™ Toolkit for Linux — OpenVINO™ documentation
- pip install openvino
- # sudo cp -r /opt/intel/openvino_2021/python/python3.9/openvino/ /home/suanfa/anaconda3/lib/python3.9/site-packages/
-
- sudo cp ./anaconda3/lib/libpython3.9.so.1.0 /usr/lib #resolve the problem of libpython3.9.so.1.0
- sudo cp -r ~/Documents/Fonts/ /usr/share/fonts/Fonts #复制Windows字体到Ubuntu
- #source /opt/intel/openvino_2021/bin/setupvars.sh # 首次安装openvino后,需执行该环境设置脚本
sudo apt-get install python3-tk
pip install face-recognition
https://github.com/davisking/dlib
若在虚拟环境安装,可参考以下安装方式:
- sudo apt-get install libboost-all-dev cmake
- sudo apt-get install libx11-dev
- sudo apt-get install build-essential
- git clone https://github.com/davisking/dlib.git
- cd dlib
- mkdir build; cd build; cmake .. -DDLIB_USE_CUDA=0 -DUSE_AVX_INSTRUCTIONS=1; cmake --build .
- cd ..
- python3 setup.py install --no DLIB_USE_CUDA
pip install imutils
model_info.py中intel文件夹路径根据部署端路径进行调整ps:不懂python的部署环境还是很麻烦的,起码我自己是超级难受,搞得我要吐要吐要吐!!
所以流程是这样,按照这个是可以搞起来的,特别详细的就算了,我已经不想吐第二次了
就这吧,毁灭吧/(ㄒoㄒ)/~~