old_contents: 
  import numpy as np
  import scipy.misc as spmi
  import sys
  caffe_root = '/home/jyh/caffe/'
  sys.path.insert(0, caffe_root + 'python')
  import caffe
  
  net = caffe.Net("test.prototxt", "snapshots/cifar10_iter_1000.caffemodel", caffe.TEST)
  
  for i in range(9):
    img = spmi.imread("../../datasets/cifar10/bmp_imgs/0000" + str(i+1) + ".bmp").astype(dtype=np.float32)
    img -= [128, 128, 128]
    img = img[:,:,::-1]
    img = img.transpose([2,0,1])
  
    net.blobs['data'].data[...] = img
  
    net.forward()
  
    print i, net.blobs['prob'].data[...].tolist()
  
  
new_contents: 
  import numpy as np
  import scipy.misc as spmi
  import sys
  caffe_root = '/home/jyh/caffe/'
  sys.path.insert(0, caffe_root + 'python')
  import caffe
  
  net = caffe.Net("test.prototxt", "snapshots/cifar10_iter_1000.caffemodel", caffe.TEST)
  
  for i in range(1):
    img = spmi.imread("../../datasets/cifar10/bmp_imgs/0000" + str(i+1) + ".bmp").astype(dtype=np.float32)
    img -= [128, 128, 128]
    img = img[:,:,::-1]
    img = img.transpose([2,0,1])
  
    net.blobs['data'].data[...] = img
  
    net.forward()
  
    print i, net.blobs['conv1'].data[...].tolist()
  
  
subject: fix test alexnet