C++ Classifier on FromProto function

10 views
Skip to first unread message

Dourado

unread,
Oct 5, 2016, 4:05:40 PM10/5/16
to Caffe Users
I'm implementing a C++ Classifier using Caffe models based on example codes found on github. There is a problem I've been experiencing when I try to convert the BlobProto read from file to a Blob<float>. I didn't change the example code for now and it's as shown below:

BlobProto blob_proto;
ReadProtoFromBinaryFileOrDie(mean_file.c_str(), &blob_proto);

Blob<float> mean_blob;   
mean_blob.FromProto(blob_proto,true);


However, when I try to build it with eclipse, I get the following error:

Invalid arguments '
Candidates are:
void FromProto(const ? &, bool)
'


I already tried to make a "const BlobProto& bproto = blob_proto" and pass bproto to FromProto function, but it didn't work. Can anyone give me a help here?
Ty so much.
Reply all
Reply to author
Forward
0 new messages