Closed initialneil closed 8 years ago
this works, thanks!
@initialneil , after compile, I have the following problems when run sudo./BING_linux, do you know how to solve it?? Thanks. Invalidate class name in /media/BING_Linux/Src/DataSetVOC.cpp:125 OpenCV Error: Assertion failed (Invalidate class name ) in loadBox, file /media/BING_Linux/Src/DataSetVOC.cpp, line 125 terminate called after throwing an instance of 'cv::Exception' what(): /media/BING_Linux/Src/DataSetVOC.cpp:125: error: (-215) Invalidate class name in function loadBox
Hi, @RyanCV . DataSetVOC.cpp line 125:
CV_Assert_(clsIdx[clsIdx.size() - 1] >= 0, ("Invalidate class name\n"));
means either clsIdx.size() == 0
(there was no class loaded from the ground truth) or clsIdx[...] < 0
(class labels were not valid). I guess your training data was not well prepared.
@initialneil, actually the error is caused by the different txt format in windows and Linux. I create a new class.txt file in linux and the problem has been solved. Thanks for your information.
Thanks a lot for updating this with OpenCV3.0!
opencv_imgcodecs
totarget_link_libraries
for OpenCV 3.0LibLinear
was compiled as library but not used; theBING
was not considered as libraryLibLinear
andBING
are compiled as libraries and linked to a singlemain.cpp