Ask Your Question

Revision history [back]

opencv dnn failed

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 image description image description I dont know whether it can recognise my opencl, my Graphics card is nvidia GTX1070, OpenCV version is 4.0.

opencv dnn failed

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 image descriptionabout

image description
[  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)

I dont know whether it can recognise my opencl, my Graphics card is nvidia GTX1070, OpenCV version is 4.0.

opencv dnn failed

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\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
" thrown in the test body.
[  FAILED  ] Test_Darknet_nets.YOLOv3/1, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL) (0 ms)
[ RUN      ] Test_Darknet_nets.YOLOv3/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.YOLOv3/2, where GetParam() = (DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL_FP16) (0 ms)

I dont know whether it can recognise my opencl, my Graphics card is nvidia GTX1070, OpenCV version is 4.0.