Win10安装dlib GPU过程详解
作者:AI浩 时间:2023-12-27 08:50:08
安装cmake,命令:
pip install cmake
安装VS
选择C++的桌面开发和python开发
给cl.exe配置环境变量。
我的cl.exe目录是:C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64。
安装dlib
git clone https://github.com/davisking/dlib.git
cd dlib
mkdir build
cd build
cmake .. -DDLIB_USE_CUDA=1 -DUSE_AVX_INSTRUCTIONS=1
cmake --build .
cd ..
python setup.py install --set USE_AVX_INSTRUCTIONS=1 --set DLIB_USE_CUDA=1
如果出现error C2734: “GifAsciiTable8x8”: 如果不是外部的,则必须初始化常量对象
解决方法:
使用python setup.py install --no DLIB_GIF_SUPPORT 安装
最后一句改为:
python setup.py install --no DLIB_GIF_SUPPORT
来源:https://wanghao.blog.csdn.net/article/details/121470556
标签:Win10,dlib,GPU,安装
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python入门_浅谈逻辑判断与运算符
2023-11-09 05:45:26
![](https://img.aspxhome.com/file/2023/8/64668_0s.png)
python如何使用socketserver模块实现并发聊天
2022-06-23 08:58:41
Redis数据库基础与ASP.NET Core缓存实现
2024-01-26 18:19:09
![](https://img.aspxhome.com/file/2023/7/98457_0s.jpg)
NodeJs Express路由使用流程解析
2024-05-11 10:16:56
Python深度学习pytorch神经网络Dropout应用详解解
2023-01-02 11:18:54
![](https://img.aspxhome.com/file/2023/3/115613_0s.png)
python如何实现视频转代码视频
2022-09-09 16:16:56
![](https://img.aspxhome.com/file/2023/6/133266_0s.jpg)
Win10环境中如何实现python2和python3并存
2023-10-18 02:58:34
![](https://img.aspxhome.com/file/2023/2/78452_0s.png)
Vuex总体案例详解
2023-07-02 16:51:52
![](https://img.aspxhome.com/file/2023/4/139804_0s.jpg)
python ansible自动化运维工具执行流程
2021-08-07 01:54:25
![](https://img.aspxhome.com/file/2023/0/78790_0s.jpg)
caffe的python接口生成配置文件学习
2023-07-09 04:46:41
pandas提升计算效率的一些方法汇总
2023-12-01 00:08:04
Python Pygame实战之实现经营类游戏梦想小镇代码版
2021-08-06 19:13:23
![](https://img.aspxhome.com/file/2023/7/113027_0s.png)
网页图片延时加载的js代码
2024-04-22 13:22:41
windows+apache+mod_python配置django运行环境
2021-02-01 04:06:54
Python基于locals返回作用域字典
2021-05-17 22:02:43
Vue中使用vee-validate表单验证的方法
2024-06-05 15:29:04
![](https://img.aspxhome.com/file/2023/2/123142_0s.jpg)
两种与SQL Server数据库交换数据的方法
2008-12-10 15:39:00
TypeScript 学习笔记之基本类型
2024-06-07 15:56:29
详解Node.js中的事件机制
2024-05-03 15:58:52
Python可变参数会自动填充前面的默认同名参数实例
2022-05-24 05:00:43