Caffe Windows compilation

Source: Internet
Author: User

The Microsoft-maintained Caffe has been used as the official Caffe Branch, and the compilation has changed, just recently reloading Caffe windows, recording the pits inside.

Https://github.com/BVLC/caffe/tree/windows

There are two scenarios for installation:

Scenario One: Use vs2015, disadvantage to the latest win10 to install vs2015, it is not recommended this program

1. Change 1 of With_ninja in Build_win.cmd to 0

2. Manual download libraries_v140_x64_py27_1.0.1.tar.bz2, to Caffe under the build folder, download needs FQ, otherwise very slow if vs2013 need to download libraries_v120_x64_py27 _1.0.1.tar.bz2

Note: The download path can be found in the script\download_prebuilt_dependencies.py file, the previous lines are

Scenario two: Using Ninja as Project management

1. Download Ninja to C:\Windows in fact, just put it in the environment variable path

2. Manual download libraries_v140_x64_py27_1.0.1.tar.bz2, to Caffe under the build folder, download needs FQ, otherwise very slow if vs2013 need to download libraries_v120_x64_py27 _1.0.1.tar.bz2

3. Run Script\build_win.cmd with Caffe-master as the root directory

About the Matlab interface:

4. Add matlab to the environment variable path in order to compile the Matcaffe

5.matlab Note MATLAB supported C + + compiler matlab2014 only support to vs2013 C + + compiler, if necessary, open MATLAB input mex-setup Modify MEX used compiler

6. After the compilation is complete, copy all DLL files under build/tools/to matlab\+caffe\private\, or there will be no caffe problem found.

7. Run the test case, there should be no problem at this time!

Caffe Windows compilation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.