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

环境配置确实比较麻烦。

运行博客http://www.cnblogs.com/denny402/p/5092075.html(推荐)遇到些问题。

anaconda2安装python

1、import caffe失败处理方法:

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

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

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

首先从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真的不错。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值