tfzhou / bingobjectness Goto Github PK
View Code? Open in Web Editor NEWBING Objectness proposal estimator Matlab wrapper. More in http://mmcheng.net/bing/
BING Objectness proposal estimator Matlab wrapper. More in http://mmcheng.net/bing/
When I run compile.m I encountered this error:
BINGObjectness-master/BINGSingle.cpp:5:
/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler
and library support for the ISO C++ 2011 standard. This support is currently experimental,
and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
Do you have any idea about this error?
Hi, I have cloned the code and followed the instruction closely to run the code. I have downloaded the VOC dataset and the corrected annotation and put it into the same folder (picture related).
Then I tried to run the example_BINGSingle and I got this error.
So I tried to compile the code. But when I ran compile.m, I encountered another error. This error messages was printed on the terminal.
Warning: You are using gcc version "4.8.2". The version
currently supported with MEX is "4.4.x".
For a list of currently supported compilers see:
http://www.mathworks.com/support/compilers/current_release/
In file included from /usr/include/c++/4.8/random:35:0,
from Objectness/Src/kyheader.h:29,
from Objectness/Src/DataSetVOC.cpp:1:
/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from /usr/include/c++/4.8/backward/strstream:51:0,
from Objectness/Src/kyheader.h:33,
from Objectness/Src/DataSetVOC.cpp:1:
/usr/include/c++/4.8/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning \
^
In file included from Objectness/Src/kyheader.h:109:0,
from Objectness/Src/DataSetVOC.cpp:1:
Objectness/Src/CmTimer.h: In member function ‘void CmTimer::Reset()’:
Objectness/Src/CmTimer.h:59:88: warning: format ‘%s’ expects a matching ‘char*’ argument [-Wformat=]
printf("CmTimer '%s'is started during reset request.\n Only reset cumulative time.\n");
^
In file included from Objectness/Src/DataSetVOC.cpp:2:0:
Objectness/Src/DataSetVOC.h: At global scope:
Objectness/Src/DataSetVOC.h:17:21: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<vector<Vec4i>> gtTrainBoxes, gtTestBoxes; // Ground truth bounding boxes for training and testing images
^
Objectness/Src/DataSetVOC.cpp: In member function ‘void DataSetVOC::loadDataGenericOverCls()’:
Objectness/Src/DataSetVOC.cpp:75:22: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<vector<Vec4i>> gtBoxes(imgN);
^
Objectness/Src/DataSetVOC.cpp: In static member function ‘static bool DataSetVOC::cvt2OpenCVYml(CStr&, CStr&)’:
Objectness/Src/DataSetVOC.cpp:160:22: error: no matching function for call to ‘std::basic_ifstream<char>::basic_ifstream(CStr&)’
ifstream f(yamlName);
^
Objectness/Src/DataSetVOC.cpp:160:22: note: candidates are:
In file included from Objectness/Src/kyheader.h:28:0,
from Objectness/Src/DataSetVOC.cpp:1:
/usr/include/c++/4.8/fstream:467:7: note: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
^
/usr/include/c++/4.8/fstream:467:7: note: no known conversion for argument 1 from ‘CStr {aka const std::basic_string<char>}’ to ‘const char*’
/usr/include/c++/4.8/fstream:453:7: note: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::char_traits<char>]
basic_ifstream() : __istream_type(), _M_filebuf()
^
/usr/include/c++/4.8/fstream:453:7: note: candidate expects 0 arguments, 1 provided
/usr/include/c++/4.8/fstream:427:11: note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
class basic_ifstream : public basic_istream<_CharT, _Traits>
^
/usr/include/c++/4.8/fstream:427:11: note: no known conversion for argument 1 from ‘CStr {aka const std::basic_string<char>}’ to ‘const std::basic_ifstream<char>&’
Objectness/Src/DataSetVOC.cpp: In static member function ‘static void DataSetVOC::getXmlStrVOC(CStr&, std::string&)’:
Objectness/Src/DataSetVOC.cpp:203:21: error: no matching function for call to ‘std::basic_ifstream<char>::basic_ifstream(CStr&)’
ifstream fin(fName);
^
Objectness/Src/DataSetVOC.cpp:203:21: note: candidates are:
In file included from Objectness/Src/kyheader.h:28:0,
from Objectness/Src/DataSetVOC.cpp:1:
/usr/include/c++/4.8/fstream:467:7: note: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
^
/usr/include/c++/4.8/fstream:467:7: note: no known conversion for argument 1 from ‘CStr {aka const std::basic_string<char>}’ to ‘const char*’
/usr/include/c++/4.8/fstream:453:7: note: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::char_traits<char>]
basic_ifstream() : __istream_type(), _M_filebuf()
^
/usr/include/c++/4.8/fstream:453:7: note: candidate expects 0 arguments, 1 provided
/usr/include/c++/4.8/fstream:427:11: note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
class basic_ifstream : public basic_istream<_CharT, _Traits>
^
/usr/include/c++/4.8/fstream:427:11: note: no known conversion for argument 1 from ‘CStr {aka const std::basic_string<char>}’ to ‘const std::basic_ifstream<char>&’
mex: compile of ' "Objectness/Src/DataSetVOC.cpp"' failed.
Error using mex (line 206)
Unable to complete successfully.
Error in compile (line 19)
eval( ['mex -O -c ' objPath 'DataSetVOC.cpp ' objPath 'CmFile.cpp ' ...
My computer is running Ubuntu 14.04 64 bit. The Matlab version is 2013a.
Do you have any suggestion on how to fix this? I am kind of stuck and running out of idea on how to run it.
Any help is greatly appreciated.
Thank you.
Maybe someone will use.
Since R2014a, mxCreateReference is no longer available. If you want to recompile the project, you will see un... to mxCreateReference
error. To fix this, you can complete the function as follows:
In BINGMultiple.cpp
, comment the line 39:
// extern "C" mxArray* mxCreateReference(mxArray*);
Then add the following:
struct mxArray_Tag_Partial {
void *name_or_CrossLinkReverse;
mxClassID ClassID;
int VariableType;
mxArray *CrossLink;
size_t ndim;
unsigned int RefCount; /* Number of sub-elements identical to this one */
};
mxArray *mxCreateReference(const mxArray *mx)
{
struct mxArray_Tag_Partial *my = (struct mxArray_Tag_Partial *) mx;
++my->RefCount;
return (mxArray *) mx;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.