Caffe Configuration
Step 1: Download: Cuda_8.0.44_windows.exe (https://developer.nvidia.com/cuda-toolkit-archive), Cudnn-8.0-windows7-x64-v5.0-ga.zip, Microsoft's Caffe (Https://github.com/Microsoft/caffe). According to the Computer Configuration and personal preferences to download the corresponding version, I GTX660 graphics, download Cuda 8.0 version and CUDNN v5.0 version, if you are compiling Matcaffe and Pycaffe, you must first install MATLAB and Python,python to take advantage of the Anaconda installation.
Step 2: unzip caffe-master get caffe-master,caffe-master----> Copy the CommonSettings.props.example in the Windows folder and rename it to Commonsettings.props, edit commonsettings.props
Modify the configuration according to MATLAB and Anaconda installed paths
Step 3: open VS2013 load Caffe.sln project
The following error may have occurred:
1. When loading the Caffe.sln project, the libcaffe.vcxproj load failed, find the corresponding. vcxproj file, change 7.5 to 8.0, and if the error occurs, replace the $ (Cuda version) directly with 8.0;
2. E:\nugetpackages\boost.1.59.0.0\lib\native\include\boost/format/alt_sstream_impl.hpp:error C2220: Warning is treated as error-no build "Object" file (.. \.. \src\caffe\util\math_functions.cpp). This is because the Math_functions.cpp file code is in English, and our system is usually Chinese, which is the wrong way to encode. There are several ways to solve the problem
(1), open math_functions.cpp directly with Visual Studio, save. Specifically, you can find the Math_functions.cpp file right-click Open mode to select Visual Studio,ok. or open the Visual studio-> file, open->math_functions.cpp save it.
(2), we notice that "warnings are treated as errors" in the error message, that is to say, this is a warning, but because of our strict set-up, we treat this warning as an error, we just relax our check error rule.
Open the Vs-> project, properties, configuration Properties,->c/c++-> general--see warnings as errors modified to "no" and recompile. Common
Step 4: compile Libcaffe, caff, and Pycaffe and Matcaffe, respectively.
Just beginning to compile Libcaffe and Caffe is no problem when compiling Pycaffe, "Cannot open include file: ' Numpy\arrayobject.h '" error, I right-click Pycaffe, select Properties, under Project Properties release "Configuration Properties" ---> "VC + + Directory"---> "Include directory" to add numpy Library directory ' F:\SoftWare\Anaconda2\pkgs\numpy-1.14.0-py27hfef472a_1\Lib\ Site-packages\numpy\core\include '.
Attention:
Change this to "release" version, because the default is release in the project properties, and we open Caffe.sln by default is Dubug, so we need to make the above changes.
Vs2013+win7 Configuration Caffe (GPU)