Caffe Windows CPU 安装

  1. https://github.com/Microsoft/caffe 执行git clone,将caffe克隆到本地

  2. http://www.itellyou.cn/Home/ 下载visual studio 2013

  3. 在克隆下来的caffe目录下,将caffe\windows下的CommonSettings.props.example复制,并改为CommonSettings.props,修改其中的CpuOnlyBuild为true,UseCuDNN为false

  4. 将caffe\windows\Caffe.sln 用visual studio 2013打开,右键Solution ‘Caffe’,点击Enable NuGet Package Restore,开始下载caffe的依赖包,时间有点久

    如果出现’未响应的情况’,需要安装update 5, 在Visual studio中,Tools -> Extensions and Updates -> 搜索update 5,然后安装visual studio 2013 update 5,安装完毕后,重新Enable NuGet Package Restore

  5. 也可以下载现成的依赖包,省去步骤3
    https://pan.baidu.com/share/init?shareid=547407751&uk=1482020722 密码: f2zx (谢谢分享~)
    下载完之后解压到caffe同级目录下:

    可以通过Manage NuGet Packages for Solution查看NugetPackages中的包。

  6. 右键Solution ‘caffe’,选择Properties,将configuration修改为 Release x64

  7. 右键,Build Solution
    LINK : fatal error LNK1104: cannot open file ‘libcaffe.lib’,单独对libcaffe生成:

    error C2220: warning treated as error - no ‘object’ file generated
    在单独生成libcaffe的时候,出现这个错误,解决方案参考https://github.com/BVLC/caffe/issues/3904,即点击error信息,将报错的文件修改其编码为unicode
    重新生成libcaffe
  8. Rebuild Solution

[Reference]
http://www.cnblogs.com/yixuan-xu/p/5858595.html
http://www.cnblogs.com/yzkk/p/5837513.html
https://github.com/BVLC/caffe/issues/3904

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值