Chapter 6 under Windows compilation Pycaffe

Source: Internet
Author: User

Pycaffe is the Python interface provided by Caffe, and we know that the entire framework of Caffe is based on C plus Plus, so Python is essentially providing a python call to the Caffe C plus plus Library. Mouth.

This compilation is done in the Windows Caffe VS2013 environment, please take the seat, the compilation process is done step by step.

1. Installing the Python Environment

Recommend install Python 2.7

It is recommended to install the Python2.7 version, because the code i downloaded refers to the Python2.7 package, and in order to avoid unnecessary hassles, it is consistent with the version in the source code, as shown in.

It is recommended to install ANACONDA2, about Anaconda, which integrates Python and a number of scientific computing third-party libraries, very convenient to use. : Https://www.continuum.io/downloads

2. Modify the Commonsettings.props configuration

Locate the Commonsettings.props file in solution Caffe, modify <PythonSupport>true</PythonSupport> to True, Then modify the path for Pythondir to the Anaconda path you installed, as shown in.

(Note here that if you want to choose Debug mode, then you have to install the Python debug lib, the reader is interested to explore, do not introduce here, so this project will be compiled in the release x64 environment)

3. Progressive compilation

This is compiled in the release x64 environment and is performed in sequence.

1) Compiling Libcaffe

2) Compiling Caffe

3) Compiling Pycaffe

After the entire compilation process is complete, the Pycaff folder and its corresponding file are generated under the release file as shown in.

Can see there are classify.py, detect.py, draw_net.py three files, respectively, corresponding to the classification, detection, mapping network model function interface.

Chapter 6 under Windows compilation Pycaffe

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.