您的位置:首页 > 编程语言 > Python开发

caffe-windows利用python对数据进行可视化

2016-10-26 11:39 567 查看
环境配置确实比较麻烦。
运行博客http://www.cnblogs.com/denny402/p/5092075.html(推荐)遇到些问题。

anaconda2安装python
1、import caffe失败处理方法:

Make sure you have compiled caffe and you have the following file under 
/Release/pycaffe/caffe
you
have 
_caffe.pyd
 and 
_caffe.lib


Put the path where _caffe.pyd is located to your PATH environment variable. 
DO NOT PUT IT to PYTHONPATH!

In PYTHONPATH put only your 
/Release/pycaffe
 folder and nothing else
related to caffe!

2、windows下python protobuf 安装 

首先从google(https://github.com/google/protobuf/releases)上下载protobuf和protoc对应的程序,然后把protoc里的protoc.exe放到protobuf\python中。依次运行执行指令 python setup.py build, python setup.py test, python setup.py install,自动完成配置。

3、matplotlib.pyplot as plt无法正确显示图像处理
修改源代码如下:

   plt.imshow(data)

   plt.show()  

终于可以使用啦!

推荐学习caffe-windows的看一下博客http://www.cnblogs.com/denny402/p/5092075.html真的不错。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: