opencv dnn failed

asked 2018-08-23 23:27:12 -0600

li19960612 gravatar image

updated 2018-08-24 04:48:01 -0600

I want to use YOLOv3 with GPU in my windows system, My cuda version is 9.1 and opencl version is 1.2. When I run opencv_test_dnn.exe, I found many errors about

[  FAILED  ] Test_Darknet_nets.YoloVoc/0, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_CPU)
[  FAILED  ] Test_Darknet_nets.YoloVoc/1, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL)
[  FAILED  ] Test_Darknet_nets.YoloVoc/2, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL_FP16)
[  FAILED  ] Test_Darknet_nets.TinyYoloVoc/0, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_CPU)
[  FAILED  ] Test_Darknet_nets.TinyYoloVoc/1, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL)
[  FAILED  ] Test_Darknet_nets.TinyYoloVoc/2, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL_FP16)
[  FAILED  ] Test_Darknet_nets.YOLOv3/0, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_CPU)
[  FAILED  ] Test_Darknet_nets.YOLOv3/1, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL)
[  FAILED  ] Test_Darknet_nets.YOLOv3/2, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL_FP16)




[ RUN      ] Test_Darknet_nets.YoloVoc/0, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_CPU)
unknown file: error: C++ exception with description "OpenCV(4.0.0-pre) E:\code-new\opencv-master\modules\imgproc\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
" thrown in the test body.
[  FAILED  ] Test_Darknet_nets.YoloVoc/0, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_CPU) (0 ms)
[ RUN      ] Test_Darknet_nets.YoloVoc/1, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL)
unknown file: error: C++ exception with description "OpenCV(4.0.0-pre) E:\code-new\opencv-master\modules\imgproc\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
" thrown in the test body.
[  FAILED  ] Test_Darknet_nets.YoloVoc/1, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL) (0 ms)
[ RUN      ] Test_Darknet_nets.YoloVoc/2, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL_FP16)
unknown file: error: C++ exception with description "OpenCV(4.0.0-pre) E:\code-new\opencv-master\modules\imgproc\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
" thrown in the test body.
[  FAILED  ] Test_Darknet_nets.YoloVoc/2, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL_FP16) (1 ms)
[ RUN      ] Test_Darknet_nets.TinyYoloVoc/0, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_CPU)
unknown file: error: C++ exception with description "OpenCV(4.0.0-pre) E:\code-new\opencv-master\modules\imgproc\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
" thrown in the test body.
[  FAILED  ] Test_Darknet_nets.TinyYoloVoc/0, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_CPU) (0 ms)
[ RUN      ] Test_Darknet_nets.TinyYoloVoc/1, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL)
unknown file: error: C++ exception with description "OpenCV(4.0.0-pre) E:\code-new\opencv-master\modules\imgproc\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
" thrown in the test body.
[  FAILED  ] Test_Darknet_nets.TinyYoloVoc/1, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL) (0 ms)
[ RUN      ] Test_Darknet_nets.TinyYoloVoc/2, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL_FP16)
unknown file: error: C++ exception with description "OpenCV(4.0.0-pre) E:\code-new\opencv-master\modules\imgproc\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
" thrown in the test body.
[  FAILED  ] Test_Darknet_nets.TinyYoloVoc/2, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL_FP16) (0 ms)
[ RUN      ] Test_Darknet_nets.YOLOv3/0, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_CPU)
unknown file: error: C++ exception with description "OpenCV(4.0.0-pre) E:\code-new\opencv-master\modules\imgproc\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
" thrown in the test body.
[  FAILED  ] Test_Darknet_nets.YOLOv3/0, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_CPU) (0 ms)
[ RUN      ] Test_Darknet_nets.YOLOv3/1, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL)
unknown file: error: C++ exception with description "OpenCV(4.0.0-pre) E:\code-new\opencv-master\modules\imgproc ...
(more)
edit retag flag offensive close merge delete

Comments

please replace the useless screenshot with a text version , thank you.

berak gravatar imageberak ( 2018-08-24 00:21:03 -0600 )edit
1

sorry, I have corrected it.

li19960612 gravatar imageli19960612 ( 2018-08-24 00:33:53 -0600 )edit

@li19960612, this is just a tests summary. Please add specific tests' outputs.

dkurt gravatar imagedkurt ( 2018-08-24 04:43:06 -0600 )edit

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

dkurt gravatar imagedkurt ( 2018-08-24 08:03:19 -0600 )edit