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