三亩地 三亩地SAN MU DI · CODE DIARY
ARTICLE DETAIL

日记详情

真实记录编程学习的某一天,欢迎挑你感兴趣的翻一翻。

Windows 10 下使用预编译文件安装 CAFFE

Windows 10 下使用预编译文件安装 CAFFE

GitHub link

https://github.com/Ruheng-He/Caffe_Windows_10

环境

  • Windows 10

  • Python 3.5.4

下载预编译文件

CAFFE 仓库

  • https://github.com/BVLC/caffe/tree/windows

上述仓库的 READMD.md 里的链接已失效,在某个 issue 中找到可用链接。

  • https://github.com/BVLC/caffe/issues/6618

  • https://drive.google.com/file/d/1blEpBf9DI4DiA6QJ35gLxmTJJ9FLL7uM/view?usp=sharing

解压 VisualStudio2015-CPUonly-Python35.rar,找到 caffe.zip,解压得到如下内容。

bin include lib python share

Python 配置

创建虚拟环境。

.\python.exe-mvenv D:\venv

激活虚拟环境,升级 pip。

python-mpipinstall--upgradepip

把解压 caffe.zip 得到的 python/caffe 文件夹复制到 Python 虚拟环境下的 Lib/site-packages 文件夹里。

尝试import caffe,发现错误 ImportError: No module named ‘numpy’。

参照如下命令安装一系列内容即可。

pipinstallnumpy scikit-image skimage scipy six google protobuf
← 返回列表