Caffe on both Linux and Windows
Перейти к файлу
microsoft-github-policy-service[bot] 70f521fe0a
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-06-14 15:19:11 +00:00
cmake Add c++11 flag to cuda cmake build 2016-09-02 16:09:56 -07:00
data Merge pull request #4455 from ShaggO/spaceSupportILSVRC12MNIST 2016-07-14 12:57:51 -07:00
docker Update Dockerfile to cuDNN v5 2016-05-16 14:32:34 -07:00
docs Update supported cuDNN version in the documentation 2016-05-16 14:35:40 -07:00
examples Merge branch 'master' of ssh://github.com/BVLC/caffe into bvlc 2016-07-14 14:58:11 -07:00
include/caffe Fix test issues 2016-08-01 19:17:38 +08:00
matlab Fix code format issues 2016-07-31 20:51:52 +08:00
models [examples] switch examples + models to Input layers 2016-02-25 17:29:42 -08:00
python Merge pull request #1 from Austriker/fast-rcnn 2016-07-15 04:42:17 -07:00
scripts Merge branch 'master' of ssh://github.com/BVLC/caffe into bvlc 2016-07-14 14:58:11 -07:00
src Fix test issues 2016-08-01 19:17:38 +08:00
tools Merge branch 'master' of ssh://github.com/BVLC/caffe into bvlc 2016-07-14 14:58:11 -07:00
windows Update windows build status url in README 2016-09-26 16:57:33 -07:00
.Doxyfile update doxygen config to stop warnings 2014-09-03 13:00:12 -07:00
.gitattributes Add support for windows build 2016-02-11 18:03:10 +01:00
.gitignore Sync with BVLC master 2016-07-14 15:54:08 -07:00
.travis.yml Cache protobuf3 build in TravisCI 2016-06-01 10:49:59 -07:00
CMakeLists.txt Add c++11 flag to cuda cmake build 2016-09-02 16:09:56 -07:00
CONTRIBUTING.md [docs] add CONTRIBUTING.md which will appear on GitHub new Issue/PR pages 2015-07-29 20:16:31 -07:00
CONTRIBUTORS.md clarify the license and copyright terms of the project 2014-08-06 18:35:29 -07:00
INSTALL.md installation questions -> caffe-users 2015-10-19 11:36:38 -07:00
LICENSE copyright 2015 2015-06-23 09:59:22 -07:00
Makefile Fix Matlab build in Makefile (adding GPU support)wq 2016-07-25 18:07:43 -07:00
Makefile.config.example [build] note that `make clean` clears build and distribute dirs 2016-05-04 13:32:22 -07:00
README.md Update README.md 2016-12-06 12:41:00 -08:00
SECURITY.md Microsoft mandatory file 2023-06-02 21:26:26 +00:00
appveyor.yml Fix windows build in appveyor by disabling parallel build 2016-09-26 12:48:41 -04:00
caffe.cloc [fix] stop cloc complaint about cu type 2014-09-04 12:54:48 -07:00

README.md

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: this branch is not actively maintained. Please checkout this for more active Windows support.


Caffe

Linux (CPU) Windows (CPU)
Travis Build Status AppVeyor Build Status

License

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.

Windows Setup

Requirements: Visual Studio 2013

Pre-Build Steps

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.

CUDA

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.

cuDNN

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.

Python

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

Remark

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.

Matlab

To build Caffe Matlab wrapper set MatlabSupport to true and MatlabDir to the root of your Matlab installation in .\windows\CommonSettings.props.

Remark

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.

Build

Now, you should be able to build .\windows\Caffe.sln

License and Citation

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}
}