Environment: Windows 7+matlab2016a+vs2013
Caffe:https://github.com/bvlc/caffe/tree/windows
1 Enter Caffe-windows's Windows folder, Copy .\windows\CommonSettings.props.example
.\windows\CommonSettings.props
to
2 Open the Caffe Project, edit the Commonsettings.props file, and the following is the CPU version setting
<CpuOnlyBuild>true</CpuOnlyBuild>
<UseCuDNN>false</UseCuDNN>
<CudaVersion>7.5</CudaVersion>
<PythonSupport>false</PythonSupport>
<MatlabSupport>true</MatlabSupport>
<CudaDependencies></CudaDependencies>
<propertygroup condition= "' $ (matlabsupport) ' = = ' true ' >
<MatlabDir>C:\Program files\matlab\r2016a</MatlabDir>
<librarypath>$ (Matlabdir) \extern\lib\win64\microsoft;$ (LibraryPath) </LibraryPath>
<includepath>$ (Matlabdir) \extern\include;$ (Includepath) </IncludePath>
</PropertyGroup>
3 Select Matcaffe Project, click Compile (will automatically download the third party libraries), in Build\x64\release will generate the corresponding file
4 Add the above build\x64\release absolute path to the system environment path variable and add Build\x64\release\matcaffe to the MATLAB path.
5 restart Matlab, call Caffe.reset_all (), the description OK.
>> Caffe.reset_all ();
Cleared 0 Solvers and 0 stand-alone nets
>>
Windows configuration caffe and MATLAB interface compilation and invocation (CPU and GPU)