Hi
I am running this Python code:
import caffe
net = caffe.Classifier('mymodelfile.prototxt', 'mypretrainedfile.caffemodel', image_dims=(224, 224), raw_scale=255)
img = caffe.io.load_image('myface.png', color=False) - [0.504633984375, 0.409228125, 0.
3656015625] # subtract mean image
score = net.predict([img], oversample=False)
print score
this works perfectly. So all I'm doing is loading a model and executing it on 1 image.
Now I would like to run the same code in C++. Is there a simple snippet of C++ that calls the equivalent high level Caffe methods? I have looked in the repository and I can only find quite complex C++ examples which go very low level. For example, no equivalent of net.predict.
I would be grateful for any advice!
Thanks a lot!