I've trained the MINIST dataset, and get the caffemodel file. And now I want classify an image by this model.
I used the file caffe-master\examples\cpp_classification\classification.cpp to get a classifier
While an error appear when I run : classifier.exe lenet_train_test.prototxt lenet_iter_10000.caffemodel mnist_mean.binaryproto label.txt 0.bmp
F0820 net_->num_inputs() ==1(0 vs 1)...
So, why my num_inputs() == 0? moreover, I found the para num_outputs() == 2(shouldn't it be 10?)