||
caffe的windows版本安装
下载地址:https://github.com/niuzhiheng/caffe
环境:
Windows 64位
MS VS 2012
CUDA toolkit 6.0
其他依赖库(opencv,boost,glog,protobuf,leveldb等)可以直接从这里下载
步骤:(懒得翻译了)
Check out the code and switch to windows branch
Download the dependency file and extract the folders inside to project root directory.
Include any .cpp you want to build in the ./tools directory to MainCaller.cpp.
Open the solution file in ./build/MSVC
Switch build target to x64 platform (Both debug and release are OK).
Build the code and you may find the ./bin/MainCaller.exe
注意:
我的GPU Gefore GT 630的计算能力是2.1,但是设置compute_21,sm_21时编译出错;如果设置compute_35,sm_35,则编译通过,运行时出错。最后参考网上的给了个暴力的:compute_10,sm_10;compute_20,sm_20;compute_30,sm_30;compute_35,sm_35
至此编译编译通过,注释maincaller中的cpp,依次编译,并修改为对应的名字。
在MNIST数据库用配置好的lenet网络参数测试成功。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-23 21:21
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社