Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error of convert_imageset_and_flow #75

Closed
gyguo opened this issue Oct 23, 2017 · 6 comments
Closed

An error of convert_imageset_and_flow #75

gyguo opened this issue Oct 23, 2017 · 6 comments
Assignees

Comments

@gyguo
Copy link

gyguo commented Oct 23, 2017

assert(cv_img2.cols==xSize && cv_img1.rows==ySize );

assert(cv_img2.cols==xSize && cv_img1.rows==ySize ); should be changed to assert(cv_img2.cols==xSize && cv_img2.rows==ySize );

@strivejin
Copy link

when I run : make -j 5 all tools pycaffe I get error do you know how to solve it ? Could you help me ? The error like this:

tools/convert_imageset_and_disparity.cpp:5:1: warning: multi-line comment [-Wcomment]
// convert_imageset [-g] ROOTFOLDER/ LISTFILE DB_NAME RANDOM_SHUFFLE[0 or 1]
^
tools/convert_imageset_and_disparity.cpp: In member function ‘void ImagePair::read_data()’:
tools/convert_imageset_and_disparity.cpp:156:31: error: ‘numeric_limits’ is not a member of ‘std’
value=std::numeric_limits::max();
^
tools/convert_imageset_and_disparity.cpp:156:51: error: expected primary-expression before ‘short’
value=std::numeric_limits::max();
^
In file included from ./include/thirdparty/CImg/CImg.h:208:0,
from tools/convert_imageset_and_disparity.cpp:38:
tools/convert_imageset_and_disparity.cpp: In function ‘int main(int, char**)’:
tools/convert_imageset_and_disparity.cpp:328:14: error: expected unqualified-id before ‘int’
leveldb::Status status = leveldb::DB::Open(
^
In file included from tools/convert_imageset_and_disparity.cpp:17:0:
tools/convert_imageset_and_disparity.cpp:330:11: error: ‘status’ was not declared in this scope
CHECK(status.ok()) << "Failed to open leveldb " << argv[arg_offset+2];
^
tools/convert_imageset_and_disparity.cpp:330:11: note: suggested alternatives:
In file included from /usr/include/boost/filesystem.hpp:17:0,
from ./include/caffe/util/io.hpp:4,
from tools/convert_imageset_and_disparity.cpp:36:
/usr/include/boost/filesystem/operations.hpp:396:15: note: ‘boost::filesystem::status’
file_status status(const path& p, system::error_code& ec)
^
/usr/include/boost/filesystem/operations.hpp:320:17: note: ‘boost::filesystem::detail::status’
file_status status(const path&p, system::error_code* ec=0);
^
Makefile:585: recipe for target '.build_release/tools/convert_imageset_and_disparity.o' failed
make: *** [.build_release/tools/convert_imageset_and_disparity.o] Error 1

@gyguo

@nikolausmayer
Copy link
Contributor

@gyguo You're right, thanks!

@strivejin

tools/convert_imageset_and_disparity.cpp:156:31: error: ‘numeric_limits’ is not a member of ‘std’
value=std::numeric_limits::max();
^

There's something about your system that I don't understand. This error should not happen: <limits> is included (and does not throw an error) and you are using GCC 5.3 on Ubuntu 16.04.
But you don't get the whole output from VERBOSE=1 make and your compiler does not find std::numeric_limits which is in <limits>.

Does the file /usr/include/limits.h exist on your system?

@strivejin
Copy link

@nikolausmayer

thanks for your reply. The file /usr/include/limits.h exist on my system. I also change the gcc version to gcc5.4 . I tried a lot of ways,but it still do not work. I think there may be some problems with my system. I will try to reinstall my Ubuntu 16.04,then try it again.

@strivejin
Copy link

@nikolausmayer

I am so happy I can run it by reinstall my system . I run it in Ubuntu 16.04 ,gcc 5.4 ,CUDA 8 ,CUDNN 5.1 ,Opencv3.1. And add #include in 'convert_imageset_and_flow.cpp'.
Thank you very much.

@nikolausmayer
Copy link
Contributor

@gyguo fixed in 9eed763

@strivejin good to hear :) although still a strange issue

@ggaziv
Copy link

ggaziv commented Dec 25, 2017

@nikolausmayer Similarly, missing #include <limits> in tools/convert_imageset_and_flow.cpp results in
tools/convert_imageset_and_flow.cpp <...> error: ‘numeric_limits’ is not a member of ‘std’ value=std::numeric_limits::max();
I believe that was caused the issue for @strivejin as well.
Thanks,
Guy

@nikolausmayer nikolausmayer self-assigned this May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants