python3.5 caffe(2017.8) cuda8.0 cudnn5.1 VS2015(windows)
来源:互联网 发布:好看的男装淘宝店 编辑:程序博客网 时间:2024/05/21 06:21
CUDA安装
- 装好显卡(GTX1070)
- 下载CUDA安装包并安装(用管理员权限打开)
CUDNN安装
- 下载cudnn类包,并解压
- 复制文件到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0的对应文件夹下
CAFFE安装
- 安装git
- 下载caffe(git clone https://github.com/BVLC/caffe.git)
- git checkout windows
修改%CAFFE_ROOT%\scripts\build_win.cmd文件
……
……
) else (
:: Change the settings here to match your setup
:: Change MSVC_VERSION to 12 to use VS 2013
if NOT DEFINED MSVC_VERSION set MSVC_VERSION=14
:: Change to 1 to use Ninja generator (builds much faster)
if NOT DEFINED WITH_NINJA set WITH_NINJA=0
:: Change to 1 to build caffe without CUDA support
if NOT DEFINED CPU_ONLY set CPU_ONLY=0
:: Change to generate CUDA code for one of the following GPU architectures
:: [Fermi Kepler Maxwell Pascal All]
if NOT DEFINED CUDA_ARCH_NAME set CUDA_ARCH_NAME=Auto
:: Change to Debug to build Debug. This is only relevant for the Ninja generator the Visual Studio generator will generate both Debug and Release configs
if NOT DEFINED CMAKE_CONFIG set CMAKE_CONFIG=Release
:: Set to 1 to use NCCL
if NOT DEFINED USE_NCCL set USE_NCCL=0
:: Change to 1 to build a caffe.dll
if NOT DEFINED CMAKE_BUILD_SHARED_LIBS set CMAKE_BUILD_SHARED_LIBS=0
:: Change to 3 if using python 3.5 (only 2.7 and 3.5 are supported)
if NOT DEFINED PYTHON_VERSION set PYTHON_VERSION=3
:: Change these options for your needs.
if NOT DEFINED BUILD_PYTHON set BUILD_PYTHON=1
if NOT DEFINED BUILD_PYTHON_LAYER set BUILD_PYTHON_LAYER=1
if NOT DEFINED BUILD_MATLAB set BUILD_MATLAB=0
:: If python is on your path leave this alone
if NOT DEFINED PYTHON_EXE set PYTHON_EXE=python
:: Run the tests
if NOT DEFINED RUN_TESTS set RUN_TESTS=0
:: Run lint
if NOT DEFINED RUN_LINT set RUN_LINT=0
:: Build the install target
if NOT DEFINED RUN_INSTALL set RUN_INSTALL=0
)
……
……手动下载libraries_v140_x64_py35_1.1.0.tar(scripts/download_prebuilt_dependencies.py中有具体地址)并保存到C:\Users\%USER_NAME%\.caffe\dependencies\download
- cmd -> cd %CAFFE_ROOT% -> scripts\build_win.cmd
- 看有没有编译错误,%CAFFE_ROOT%\build里文件是否正确生成
PyCaffe配置
- python编译完后,要将caffe_root/python拷贝到python的site路径下。
- pip install google
- pip install protobuf
- python >>> import caffe不报错,就算成功了。
jupyter
- pip install jupyter
- cd %caffe_root%\examples
- jupyter notebook
- 选择要看的*.ipynb示例
- python3.5 caffe(2017.8) cuda8.0 cudnn5.1 VS2015(windows)
- windows+cuda8.0+VS2015+matlab2017b+cudnn5.1安装配置Caffe
- Windows10+CUDA8.0+VS2015+CUDNN5下配置caffe
- VS2015+Anaconda4.4.0(Python3.6)+Theano+CUDA8.0+cuDNN5.1环境配置
- win7+vs2015+cuda8.0+cudnn5.1+caffe+tensorflow+keras环境搭建
- Windows10+CUDA8.0+VS2015+CUDNN5.1下配置 caffe 2017.11.17号
- OpenPose+VS2015+Windows+CUDA8+cuDNN5.1 官方配置教程
- CAFFE windows GTX1080 cuda8.0 VS2015
- windows+caffe+cuda8.0+cudnn5.1+gtx1080ti cudnn编译时opencv编译出错,找不到指定文件。
- windows10+pytorch+anaconda4.4.0+python3.6.1+cuda8.0+cudnn5.1
- ubuntu16.04+caffe+cuda8.0+cudnn5.1+opencv3.1配置
- caffe+cuda8.0+cudnn5.1+Ubuntu16.04安装
- windows10+cuda8.0+cudnn5.1+vs2013下编译caffe
- Ubuntu16.04+Titan X+CUDA8.0+cudnn5.1+Caffe
- ubuntu16.04配置caffe+cuda8.0+cudnn5.1
- Ubuntu16.04+caffe+cuda8.0+cudnn5.1+opencv配置
- windows10+cuda8.0+cudnn5.1+vs2013下编译caffe
- Caffe编译(Win10+Vs2015+Cuda8.0)
- 中国气象数据下载
- java开发搭建,jdk与jre的安装,环境变量的设置,jdk是什么,jre是什么
- Linux基础命令学习
- Java工程师成神之路
- react事件绑定--不再需要bind啦(es6)
- python3.5 caffe(2017.8) cuda8.0 cudnn5.1 VS2015(windows)
- Linux 版本
- Linux socket连接数(file descriptor)
- Django使用Session
- 沃顿商学院自我管理课——完美融合
- https知识了解与javaweb中如何使用https
- hadoop学习之路
- sc2017新高二&高一模拟赛2 总结
- Java7和Java8的HashMap底层思想解析