Hi there,
I am relatively new to caffe and thus am trying to understand the examples.
Yesterday I have trained the cifar 10 example with the full_solver and no changes in the .prototxt.
After training I now want to make predictions in Python. Therefor I use
MODEL_FILE_FULL= '/usr/local/lib/python2.7/dist-packages/caffe/examples/caffe/cifar-10/cifar10_full.prototxt'
PRETRAINING_FILE_FULL= '/usr/local/lib/python2.7/dist-packages/caffe/examples/caffe/cifar-10/cifar10_full_iter_70000.caffemodel.h5'
IMAGE_FILE_LIST = list of images
mean = np.load('/usr/local/lib/python2.7/dist-packages/caffe/examples/caffe/cifar-10/mean.npy).reshape((3,32,32))
net = caffe.Classifier(MODEL_FILE_FULL, PRETRAINING_FILE_FULL, mean)
input_img = caffe.io.load_image(IMAGE_FILE_LIST.pop(0))
prediction = net.predict([input_img])
print 'prediction class:', prediction.argmax()
My problem now is, that i get class 3 as prediction for every image. I tested images from every class and always get the same result, where the probability of class the is around 8.8-01, thus very high for all images.
Has anybody had similar problems and a solution for this?
I already tested it with the short training and downloaded the cifar-10 data new.
Thanks!!!