Hello everyone.
I have some question!
May I have anyone to solution my question.
I complier classification.cpp.
I put the clock_t on the input image
Like this:
clock_t clockbegin,clockend;
clockbegin = clock();
cv::Mat img = cv::imread(file, -1);
//CHECK(!img.empty()) << "Unable to decode image " << file;
std::vector<Prediction> predictions = classifier.Classify(img);
clockend = clock();
printf("%Lf\n", (long double)(clockend - clockbegin));
And the time is about 0.3s.
But it's maybe not use gpu.
How to ues gpu to accelerate this program classification.cpp.
And the time will less than 0.05s.
Thank everyone for help.
Have a nice day.