Win 10 安装caffe

Procedure for installing caffe deep learning framework on windows

  1. install vs 2013 or 2015.

  2. install CMake 3.4 or higher from https://cmake.org/ and add to system path of computer

  3. install python 2.7.13 and add to system path of computer (install miniconda 2.7 would be better)

  4. install matlab for using the matlab interface (if you prefer python interface, skip this step)

  5. Install CUDA Tookkit from https://developer.nvidia.com/cuda-downloads \
    (note: using cuda 8.0 if you use the visual studio 2015)

  6. Download cuDNN v6.0 from https://developer.nvidia.com/cudnn; Extract and copy to the install directory of CUDA ToolKit. (i.e.,C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0)

  7. Run the cmd of windows and following command to install additional python packages
    conda config –add channels conda-forge
    conda config –add channels willyd
    conda install –yes cmake ninja numpy scipy protobuf==3.1.0 six scikit-image pyyaml pydotplus graphviz
    Note, to boost the download process, try to add a internal download mirror

  8. Run the following command to build the Caffe library.
    c:\projects> git clone https://github.com/BVLC/caffe.git
    c:\projects> cd caffe
    c:\projects\caffe> git checkout windows

  9. Edit any of the options inside build_win.cmd to suit your needs. In my case, skip to step 10 directly.

  10. C:\projects\caffe> scripts\build_win.cmd
    (Note: Using ninja will make the installation faster than using only Visual Studio)

There are some errors during the first run of step 10, and they are solved by just rerun step 10 several times.
HOW TO USE Python Interface
In order to use the python interface you need to either add the C:\Projects\caffe\python folder to your python path or copy the C:\Projects\caffe\python\caffe folder to your site_packages folder.

Result screen capture:
这里写图片描述

这里写图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值