#下载dlib安装包
wget http://dlib.net/files/dlib-19.21.tar.bz2
#解压至当前文件夹
tar -xjvf dlib*.tar.bz2
#安装cmake和libboost
sudo apt-get install build-essential cmake pkg-config
sudo apt-get install libatlas-base-dev libboost-python-dev
#安装c++版本dlib
cd dlib-19.21
cd dlib
mkdir build
cmake .. -DDLIB_USE_CUDA=0 -DUSE_AVX_INSTRUCTIONS=1 #参数的意思是不安装cuda,不加参数我一直cmake不成功,报的错是CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_cublas_LIBRARY (ADVANCED)
cmake --build . --config Release
sudo make install
cd ..
cd .. #此时在dlib-19.21目录下
python setup.py install #安装python版
Ubuntu服务器上安装dlib
最新推荐文章于 2024-06-23 13:44:28 发布