Fail to run the example in the OpenCV tutorial of Load Caffe framework models

asked 2017-04-23 22:43:21 -0600

cqxooo gravatar image

I've tried the example in the opencv_contrib tutorial of dnn: docs.opencv.org/master/d5/de7/tutorial_dnn_googlenet.html

But it return two errors, I've search for hours and didn't get any solution. Does anyone could give me some help?

OpenCV Error: Assertion failed (retval == 0) in cv::ocl::Kernel::set, file D:\opencv32\opencv\modules\core\src\ocl.cpp, line 3366
OpenCV Error: Assertion failed (The following error occured while making forward() for layer "loss3/classifier": retval == 0) in cv::ocl::Kernel::set, file D:\opencv32\opencv\modules\core\src\ocl.cpp, line 3366
edit retag flag offensive close merge delete

Comments

1

can you try to disable opencl ?

#include "opencv2/core/ocl.hpp"
...
int main() {
    ocl::setUseOpenCL(false);
berak gravatar imageberak ( 2017-04-24 02:16:36 -0600 )edit

If I disable OpenCL explicitly and CUDA support is available on the system, then the sample runs just fine.

StevenPuttemans gravatar imageStevenPuttemans ( 2017-04-24 08:29:38 -0600 )edit

I tried to disable opencl before and it can work. But opencv detects only one gpu on my system, so I still want to make opencl work.

1 GPU devices are detected.
name:              Intel(R) HD Graphics 5500
available:         1
imageSupport:      1
OpenCL_C_Version:  OpenCL C 2.0
cqxooo gravatar imagecqxooo ( 2017-04-24 20:18:57 -0600 )edit

So that means you have 2 GPU devices in your system or not? Please clarify?

StevenPuttemans gravatar imageStevenPuttemans ( 2017-04-25 02:34:59 -0600 )edit