如题
看到最近蛮多开源框架可用,刚好Python又很适合拿来做资料处里
所以就开始研究怎使用
主要是参考官方github上的指引: https://github.com/Microsoft/caffe.git
目前完成动作:
1. 下载 caffe source from "https://github.com/Microsoft/caffe.git"
2. 安装cuda-toolkit 7.5 & cudnn
3. 将 .\windows\CommonSettings.props.example 文件名称修改为
.\windows\CommonSettings.props 并且设定python路径等项目
(ex: D:\Python\WinPython-64bit-2.7.10.3\python-2.7.10.amd64)
4. 以vc2013 打开 Caffe.sln 以Release 编译 libcaffe 成功 (有产生 .\Build 资料
夹 里面可以找到 "__init__.py" 和 "caffe_pb2.py" )
5. 将 <Caffe_Dir>\Build\x64\Release\pycaffe\caffe 复制到
<Python_Dir>\lib\site-packages
6. 在Python 2.7.10 Shell 底下输入 "import caffe"
发生问题:
在Python 2.7.10 Shell 底下输入 "import caffe" 会出现 "ImportError: No module
named caffe" 等讯息
请问有试过的大大,请问我还差什么步骤呢? 还请指点一下 感谢
补充:
1. Python 我是安装 WinPython-64bit-2.7.10.3 所以
numpy scipy matplotlib scikit-image 似乎都有了
2. Miniconda 不知道是做什么用的,也不清楚从哪下指令安装 "protobuf"