torrvision / Objectness

BING Objectness proposal estimator linux/mac/windows version implementation, runs at 1000 FPS. More in http://mmcheng.net/bing/ and also http://www.robots.ox.ac.uk/~szheng/DepthProposals.html
http://kylezheng.org/objectproposal/
BSD 3-Clause "New" or "Revised" License
190 stars 86 forks source link

/Objectness.cpp:304 not enough training sample for r[0] = 2. P = 0, N = 6760 #16

Open yaokmallorca opened 6 years ago

yaokmallorca commented 6 years ago

Hi bittnt, Thanks a lot for this code. I ran this algorithm on my dataset and I got the error which has troubled me for a long time. The error report is : Warning /home/bnnt/software/Objectness-master/Src/Objectness.cpp:304 not enough training sample for r[0] = 2. P = 0, N = 6760 xp.size = 0 xN.size = 6760 OpenCV Error: Assertion failed (!fixedSize() || ((Mat)obj)->size.operator()() == Size(_cols, _rows)) in create, file /home/bnnt/opencv-3.1.0/modules/core/src/matrix.cpp, line 2232 terminate called after throwing an instance of 'cv::Exception' what(): /home/bnnt/opencv-3.1.0/modules/core/src/matrix.cpp:2232: error: (-215) !fixedSize() || ((Mat)obj)->size.operator()() == Size(_cols, _rows) in function create

I find there no positive samples in "xP". Do you know how to fix it? Thanks a lot.

Aborted (core dumped)