技术标签: caffe-win安装
This branch of Caffe extends BVLC-led Caffe by adding Windows support and other functionalities commonly used by Microsoft’s researchers, such as managed-code wrapper, Faster-RCNN, R-FCN, etc.
Update: Please checkout this for more active Windows support.
Linux (CPU) |
Windows (CPU) |
|---|---|
Caffe is a deep learning framework made with expression, speed, and modularity in mind.
It is developed by the Berkeley Vision and Learning Center (BVLC) and community contributors.
Check out the project site for all the details like
and step-by-step examples.
Requirements: Visual Studio 2013
Copy .\windows\CommonSettings.props.example to .\windows\CommonSettings.props
By defaults Windows build requires CUDA and cuDNN libraries.
Both can be disabled by adjusting build variables in .\windows\CommonSettings.props.
Python support is disabled by default, but can be enabled via .\windows\CommonSettings.props as well.
3rd party dependencies required by Caffe are automatically resolved via NuGet.
Download CUDA Toolkit 7.5 from nVidia website.
If you don’t have CUDA installed, you can experiment with CPU_ONLY build.
In .\windows\CommonSettings.props set CpuOnlyBuild to true and set UseCuDNN to false.
Download cuDNN v4 or cuDNN v5 from nVidia website.
Unpack downloaded zip to %CUDA_PATH% (environment variable set by CUDA installer).
Alternatively, you can unpack zip to any location and set CuDnnPath to point to this location in .\windows\CommonSettings.props.
CuDnnPath defined in .\windows\CommonSettings.props.
Also, you can disable cuDNN by setting UseCuDNN to false in the property file.
To build Caffe Python wrapper set PythonSupport to true in .\windows\CommonSettings.props.
Download Miniconda 2.7 64-bit Windows installer [from Miniconda website] (http://conda.pydata.org/miniconda.html).
Install for all users and add Python to PATH (through installer).
Run the following commands from elevated command prompt:
conda install --yes numpy scipy matplotlib scikit-image pip
pip install protobuf
After you have built solution with Python support, in order to use it you have to either:
* set PythonPath environment variable to point to <caffe_root>\Build\x64\Release\pycaffe, or
* copy folder <caffe_root>\Build\x64\Release\pycaffe\caffe under <python_root>\lib\site-packages.
To build Caffe Matlab wrapper set MatlabSupport to true and MatlabDir to the root of your Matlab installation in .\windows\CommonSettings.props.
After you have built solution with Matlab support, in order to use it you have to:
* add the generated matcaffe folder to Matlab search path, and
* add <caffe_root>\Build\x64\Release to your system path.
Now, you should be able to build .\windows\Caffe.sln
Caffe is released under the BSD 2-Clause license.
The BVLC reference models are released for unrestricted use.
Please cite Caffe in your publications if it helps your research:
@article{jia2014caffe,
Author = {Jia, Yangqing and Shelhamer, Evan and Donahue, Jeff and Karayev, Sergey and Long, Jonathan and Girshick, Ross and Guadarrama, Sergio and Darrell, Trevor},
Journal = {arXiv preprint arXiv:1408.5093},
Title = {Caffe: Convolutional Architecture for Fast Feature Embedding},
Year = {2014}
}
Matlab 2017a + Caffe + Cuda10/Cudnn7.6.4 + Cmake 3.11 主要问题: 0 build_win.cmd文件修改 —— 直接Google吧 1 libraries_v140_x64_py35_1.1.0.tar下载缓慢导致中断的问题 — 手动安装 在Github相关网页上下载,放在C盘中.caffe路径中的相关位置并...
Microsoft版的caffe在windows10下编译使用python 1.微软caffe 2.Cuda 3.Cudnn 4.Vs2013 5.CommonSettings.props 6.Python 7.编译caffe 8.设置 9.编译libcaffe 10.编译caffe 11.miniconda配置 12.编译pycaffe 13.最后啦!!!! 14.测试 1.微软caffe ht...
目录结构 一. 准备工作 二. 编译 2.1、开启相关caffe版本的编译开关配置内容 2.2、手动更改或者指定版本对应编译器目录 2.3、下载依赖文件dependencies文件到指定目录 2.4、编译 三. MNIST手写体字符识别(C++) 3.1、MNIST数据集下载 3.2、转换数据格式 3.3、训练和测试数据集 3.4、测试单张图片 四. Matlab Demo 4.1、编译Caffe...
Windows:Caffe 编译训练(图像分类)部署工作流 一、Caffe编译 Step0:注意事项:从step1开始,出错了来此处找解决方案 Step1:确认GPU环境 Step2:安装VS2013 Step3:下载Caffe源码 (microsoft版本) Step4:VS2013中配置Caffe Step5:VS中重中之重的设置 Step6:Python接口后续 Step7:补充编译open...
1、安装vs 2017 enterprise x64版本。 2、下载libiconv源码,当前源码版本为1.16。解压到某个没有中文环境的目录,比如:D:\devel\libiconv-1.16。 3、安装cygwin,比如安装到D:\cygwin64,打开cygwin终端,运行命令: 在$HOME/msvc下创建两个sh脚本,一个名叫ar-lib,一个叫compile,内容在:https://g...
来源:彩色世界(https://blog.ibaoger.com/2017/07/08/compile-openh264-for-windows/index.html) 简介 OpenH264 是思科的开源项目,可以编码解码H264,常见的H264编码器还有x264项目。 由于OpenH264项目的文档较少,初学的门槛较高,所以整理一些文章来帮忙初学者入门。 系列文章包括: 编译OpenH264...
2019独角兽企业重金招聘Python工程师标准>>> 1.下载Python http://python.org/getit/ Py3K开始流行了,最好Py27和Py32都安装上 2.下载Mercurial http://mercurial.selenic.com/downloads/ 版本控制软件,用来下载最新VIM源代码 3.下载VIM源代码 E:\> hg...
在我安装编译caffe出现 ./caffe/export.hpp 无法打开包括文件: “caffe/include_symbols.hpp时,我查找了几种解决方法。 1、修改build_win.cmd(我编译的时候使用这个方法依然没有解决问题) 将(line 74): 修改为: 在重新运行即可 2、我自己摸索的方法——修改./caffe/export.hpp文件...
Django运行(For Windows) 创建虚拟环境 **虚拟环境 退出虚拟环境 依照requirements.txt安装需要的包 创建数据库 运行...
新的文集,第一篇Windows相关的文章。为了完成人物绘画的作业,只好装个Windows来完成作业。那么先解决网络问题。 Ptunnel for Windows 下载地址:http://pan.baidu.com/s/1qY0gA4G ptunnel是一个应用程序,允许您通过可靠的TCP隧道连接一个远程主机,并使用ICMP回送请求和应答包,俗称ping请求和回复。对于学校的糟糕网络来说,这是一个不...