GOTURN tracker error [closed]

asked 2017-02-20 03:09:40 -0600

LorenaGdL gravatar image

updated 2017-02-20 03:15:52 -0600

Hi there,

I'm trying to test the new GOTURN tracker, but I can't manage to make it work as some dnn error arises. Steps followed:

  1. Latest versions compiled (both OpenCV and OpenCV contrib)
  2. Downloaded pre-trained data from here as stated in this question (is this data OK? I've seem some issues/PRs related to them, not too sure if we should use them or not)
  3. Also related to this question, I had to manually change paths and re-compile to read the .prototxt and .caffemodel, otherwise I couldn't make it work on Windows and VisualStudio with relative paths
  4. I tried both the official sample and some other minimal sample (which reads from video, not from dataset), and both make this error appear when updating the tracker:

    OpenCV Error: Assertion failed (The following error occured while making allocate() for layer "conv11": input.dims() == 4 && (input.type() == CV_32F || input.type() == CV_64F)) in cv::dnn::BaseConvolutionLayerImpl::allocate, file \opencv_contrib-master\modules\dnn\src\layers\convolution_layer.cpp, line 87

Has anyone experienced this error, or can check it? Any tips to solve it? I guess this is something related to the dnn implementation, but I'm asking just in case. If someone else get the error, I will open an issue.

Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-21 12:44:07.006234

Comments

Disabling OpenCL should help: set environment varible OPENCV_OPENCL_DEVICE=disabled

mshabunin gravatar imagemshabunin ( 2017-02-20 04:03:02 -0600 )edit

No luck with that solution. OpenCL is disabled (a message is printed saying "Failed to load OpenCL runtime"), but still getting same crash

LorenaGdL gravatar imageLorenaGdL ( 2017-02-20 04:34:10 -0600 )edit

Try to replace contructors:

https://github.com/opencv/opencv_cont...

with factory method: Blob::fromImages(...)

http://docs.opencv.org/master/da/d16/...

mshabunin gravatar imagemshabunin ( 2017-02-20 05:49:39 -0600 )edit

Yep, that solved the issue! Should I make a PR with the changes, or is this something you're already working on?

LorenaGdL gravatar imageLorenaGdL ( 2017-02-20 07:06:39 -0600 )edit

There is some background work on dnn module, but I think it would be great to fix GOTURN now. So, feel free to provide pull request. Partially related issue is #941.

mshabunin gravatar imagemshabunin ( 2017-02-20 07:23:24 -0600 )edit