pycaffe
No module named google.protobuf.internal
1、下载protobuf(https://github.com/google/protobuf/releases/tag/v3.0.0)。下载两个文件,一个protoc-3.0.0-win32.zip,一个Source code。
2、将protoc-3.0.0-win32\bin\protoc.exe 拷贝进入源代码文件夹下 src中
3、进入源代码文件夹下python文件夹,cmd执行 python setup.py build
4、build结果文件中的python中的Google放到\Lib\site-packages中
matcaffe 编译出错
"gpu/mxGPUArray.h" Not Found
<PropertyGroup Condition="'$(MatlabSupport)'=='true'">
<MatlabDir>D:\MATLAB\R2016a</MatlabDir>
<LibraryPath>$(MatlabDir)\extern\lib\win64\microsoft;$(LibraryPath)</LibraryPath>
<IncludePath>$(MatlabDir)\extern\include;$(IncludePath)</IncludePath>
<IncludePath>$(MatlabDir)\extern\include;$(MatlabDir)\toolbox\distcomp\gpu\extern\include;$(IncludePath)</IncludePath><!-- 新增的一句 -->
</PropertyGroup>
编译成功后在系统变量中添加Release路径,在matlab中添加matcaffe的路径。
网友评论