caffe python

时间:2015-05-20 21:55:11   收藏:0   阅读:217
一开始没有安装完全,
sudo apt-get install python-numpy python-scipy python-matplotlib python-sklearn python-skimage python-h5py
python-protobuf python-leveldb python-networkx python-nose python-pandas python-gflags Cython ipython


在使用matplotlib时需要注意一个问题,先看示例


import matplotlib.pyplot as plt

input_image = caffe.io.load_image(IMAGE_FILE)
plt.imshow(input_image)
#显示
plt.show() 
最后一唏的plt.show()必须有,要不然不会显示绘图,在caffe的例子中并没有注明这一点
评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!