tensorflow 安装(GPU版)
cuda8.0+cudnn+tensorflow1.4.0安装
cuda8.0+cudnn
参考任意教程即可
https://blog.csdn.net/ygjustgo/article/details/78883981
命令:pip install tensorflow-gpu==1.2.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
安装任意版本的 tensorflow 更改版本即可
出现错误时 考虑 cuda和tensorflow的版本问题
直接更改版本号即可(tensorflow-gpu==1.2.1)
opencv
参考conda install --channel https://conda.anaconda.org/menpo opencv3
pytorch安装
参考:https://blog.csdn.net/manong_wxd/article/details/78583098
anaconda3+opencv安装方法
https://blog.csdn.net/ytrewq121/article/details/78966309/
亲测可行
1.添加清华镜像站
运行cmd,执行以下代码
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set show_channel_urls yes
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
2.安装opencv
然后执行
conda install -c https://conda.binstar.org/menpo opencv
或
conda install -c https://conda.binstar.org/menpo opencv3
即可
参考:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
http://blog.csdn.net/fairylrt/article/details/43560525
Dlib 和 face_recognition 环境安装
https://www.cnblogs.com/lfydeblog/p/8571988.html
亲测可行
第一.
装VS,我装的2015版,千万要装VC++模块,否则装了也无法执行.mat文件
第二.
安装cmake,官网下载安装包:https://cmake.org/download/ ,注意位数.
第三.
安装boost,下载:http://www.boost.org/, ,下载到C:\local目录下
VS2015开发人员命令提示,可以在这里编Boost,是一个CMD窗口.cd 进入进入之前下载的Boost目录,执行bootstrap.bat
再在命令中输入b2 install
3)利用b2编译库文件
b2 -a --with-python address-model=64 toolset=msvc runtime-link=static
之前你cmake下载的64位这里写64,如果是32位的就把之前的64改成32
设置变量
set BOOST_ROOT=C:\local\boost_1_63_0
set BOOST_LIBRARYDIR=C:\local\boost_1_63_0\stage\lib
第四.安装dlib
下载dlib,解压,运行python setup.py install
第五.安装face_recognition
pip install face_recognition