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 88 forks source link

Update CMakeLists.txt #11

Closed initialneil closed 8 years ago

initialneil commented 8 years ago
    /usr/bin/ld: libBING.a(Objectness.cpp.o): undefined reference to symbol     '_ZN2cv7imwriteERKNS_6StringERKNS_11_InputArrayERKSt6vectorIiSaIiEE'
    /usr/local/lib/libopencv_imgcodecs.so.3.0: error adding symbols: DSO missing from command line
RyanCV commented 8 years ago

this works, thanks!

RyanCV commented 8 years ago

@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

initialneil commented 8 years ago

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.

RyanCV commented 8 years ago

@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.

bittnt commented 8 years ago

Thanks a lot for updating this with OpenCV3.0!