BING-Objectness icon indicating copy to clipboard operation
BING-Objectness copied to clipboard

what is D on line 7

Open ramanpreet9 opened this issue 8 years ago • 3 comments

what is D on line 7 of FilterTIG.cpp CV_Assert(w1f.cols * w1f.rows == D && w1f.type() == CV_32F && w1f.isContinuous());

when i try to run i get the following error: openCV Error: Assertion failed (w1f.cols * w1f.rows == D && w1f.type() == CV_32F && w1f.isContinuous()) in update, file .../BING/FilterTIG.cpp,

ramanpreet9 avatar Jul 10 '16 08:07 ramanpreet9

The variable D is declared here. I am not entirely sure why this might happen. My guess would be that the model has different parameters during training and testing.

varun-nagaraja avatar Jul 11 '16 03:07 varun-nagaraja

i checked using print outs.. somehow w1f.cols and w1f.rows are both 0 while D is 64 if i remember correctly.. any clue why that might happen? i can imshow the image properly without any problems.

ramanpreet9 avatar Jul 11 '16 03:07 ramanpreet9

The update method is called here. The input variable filters1f is the model loaded from file. So can you check if the model is saved and loaded properly.

varun-nagaraja avatar Jul 11 '16 03:07 varun-nagaraja