GOTURN tracker error [closed]
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:
- Latest versions compiled (both OpenCV and OpenCV contrib)
- 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)
- 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
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
Disabling OpenCL should help: set environment varible
OPENCV_OPENCL_DEVICE=disabled
No luck with that solution. OpenCL is disabled (a message is printed saying "Failed to load OpenCL runtime"), but still getting same crash
Try to replace contructors:
https://github.com/opencv/opencv_cont...
with factory method:
Blob::fromImages(...)
http://docs.opencv.org/master/da/d16/...
Yep, that solved the issue! Should I make a PR with the changes, or is this something you're already working on?
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.