DNN module efficiency is low in C++
I'm trying to run "master/samples/dnn/ssd_mobilenet_object_detection.cpp" of caffe module, and the efficiency is not high. I have tried to recognize a local video file but the FPS is only around 4-5. The Inference time is about 150ms. In the link below I found that the efficiency of DNN, C++ is good.
link text MobileNet-SSD @ 300x300 20 classes, Caffe 22.71 54.36 27.79
My CPU is I7-7700K 4.2GHz with 8 cores. Could someone give me some help? Thanks!
@zrbzrb1106 please add a build configuration and how you estimate an efficiency. Have you tried to run OpenCV performance tests by
./opencv_perf_dnn --gtest_filter=DNNTestNetwork.MobileNet_SSD_Caffe
?Thank you for the reply. Actually I'm using the pre-built libraries in Windows10 and VS2017. The estimation is based on the output when running ssd_mobilenet_object_detection.cpp. I could see the output info of inference time and fps. I'm quite new in OpenCV, do I need to build the library myself to get higher efficiency? Thanks!
I have the same problem but when I'm trying to run resnet_ssd_face.cpp of caffe module in this case, the FPS is only around 1-1.8
system: my CPU is i5-3230M 2.60Ghz / windows8.1/ VS2017 And I'm using pre-built lib.
is this problem because of the pre-built lib or my system?
@soheil , please do not post answers here, if you have a question or comment, thank you.