caffemodel missing in dnn performance test [closed]

asked 2018-09-18 13:31:32 -0600

yancey gravatar image

updated 2018-09-18 16:09:10 -0600

I am using dnn module in opencv. I want to do a performance test. After building, I have opencv_perf_dnn.exe in my bin folder. When I ran it with --gtest_filter=DNNTestNetwork.MobileNet_SSD_Caffe, it returned immediately with 0 tests. I searched my install folder and build folder. There is no MobileNetSSD_deploy.caffemodel file, actually no caffemodel file at all.

So the question is do I need to obtain those caffemodels used in dnn perf test by myself, or there is some special flags I need to check in CMake to have caffemodels installed? Thanks.

I am working on Windows 7, Visual studio 2015. I am using opencv's master branch from github.

Okay, I have the caffemodel files now. Somehow all tests in DNNTestNetwork testcase are skipped when I run opencv_perf_dnn.exe:

[ RUN ] DNNTestNetwork.AlexNet/0, where GetParam() = OCV/CPU 
Test was skipped 
[ OK ] DNNTestNetwork.AlexNet/0 (1 ms)

Any idea what's going?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by yancey
close date 2018-09-21 12:11:11.548705

Comments

Thanks. I have the caffemodel files now. Somehow all tests in DNNTestNetwork testcase are skipped when I run opencv_perf_dnn.exe: [ RUN ] DNNTestNetwork.AlexNet/0, where GetParam() = OCV/CPU Test was skipped [ OK ] DNNTestNetwork.AlexNet/0 (1 ms) Any idea what's going?

yancey gravatar imageyancey ( 2018-09-18 15:53:36 -0600 )edit

@yancey, you need to specify path to /opencv_extra/testdata by OPENCV_TEST_DATA_PATH environment variable.

dkurt gravatar imagedkurt ( 2018-09-19 05:00:44 -0600 )edit

@dkurt, thanks, it works now.

yancey gravatar imageyancey ( 2018-09-20 09:28:02 -0600 )edit