caffe python

一开始没有安装完全,
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的例子中并没有注明这一点


 

 
posted @ 2015-05-20 19:32  xiaoxiaowenge  阅读(598)  评论(0)    收藏  举报