Failed assertion by saliency calculation [closed]
Hi everyone,
I would like to calculate the BING objectness of some images, but I can not get my code to run. I am using the example code, released here: https://gist.github.com/thorikawa/fea... but if I call computeSaliency() I get an assertion error:
OpenCV Error: Assertion failed (w1f.cols * w1f.rows == D && w1f.type() == CV_32F && w1f.isContinuous()) in cv::saliency::ObjectnessBING::FilterTIG::update, file \opencv_contrib-master\opencv_contrib-master\modules\saliency\src\BING\FilterTIG.cpp, line 74
I could imagine, that maybe the training fails, even though I set the training data path just like the example says. How could I check, that the training went well? Or does anyone have any idea, how I could get rid of this assertion error?
Thanks a lot for the help!
Have you try this sample
Yes, unfortunately it still fails, and I get the same message :/
can you show, how you call your prog (cmdline args) ?
the problem seems to be a wrong training_path arg (it can't find the pretrained models)
try: