Open doulemint opened 5 years ago
Hello, you need to check the base paper option when you're in CMake so that you compile the paper file as well, or you can change the "CaceLists.txt" option in the libSGM directory to change it to "ON"
Hello. I'm sorry that readme is a bit unkind.
Try @yuzw213's comment or re-run CMake with option -DENABLE_SAMPLES=on
:
$ cd /path/to/libSGM
$ mkdir build && cd build
$ cmake .. -DENABLE_SAMPLES=on
$ make
$ ls sample/movie/
CMakeFiles Makefile cmake_install.cmake stereo_movie
@ykitta-fixstars Hello, do you have any suggestions for big picture input processing?and Do I need to change your algorithm?
@yuzw213 I haven't check big picture input. If you already confirm doesn't work, please create issue about it? we'll try that.
@ykitta-fixstars Thanks for your reply. Yes, it doesn't work for big picture input.
@ykitta-fixstars I'm sorry, I tried again. It was mainly a matter of entering the color bit depth format of the picture. It had nothing to do with the size of the picture. I changed the code and the program could run
@yuzw213 Okay. Thank you for your report. I'm glad for you to run successfully.
I have the same issue. The make was successful but there is no directory sample/movie.
I tried _-DENABLESAMPLES=on, it throws errors like this:
`-- CUDA_ARCH: "-arch=sm_50" CMake Error at CMakeLists.txt:39 (add_subdirectory): add_subdirectory given source "sample/image" which is not an existing directory.
CMake Error at CMakeLists.txt:40 (add_subdirectory): add_subdirectory given source "sample/movie" which is not an existing directory.
CMake Error at CMakeLists.txt:41 (add_subdirectory): add_subdirectory given source "sample/reprojection" which is not an existing directory.
CMake Error at CMakeLists.txt:42 (add_subdirectory): add_subdirectory given source "sample/benchmark" which is not an existing directory.
-- Configuring incomplete, errors occurred! See also "/home/user/Desktop/libSGM/build/CMakeFiles/CMakeOutput.log". See also "/home/user/Desktop/libSGM/build/CMakeFiles/CMakeError.log". `
@niraj-bhujel Hi. Thank you for trying.
Please show detail build instruction (I want to know build path from project root, for example) and OS, CUDA. CMake versions.
I confirmed following build instruction at my docker environment (Ubuntu 18.04+CUDA 9.2+CMake 3.10.2).
(I tried at environment doesn't have GPU, so I added -DAUTO_DETECT_ARCH=off
option)
@ykitta-fixstars Thank you for your help. Actually the sample folder was not cloned. Now I am having issue with reading .png image. I get error when executing
~/libSGM/build/sample/image$ ./stereo_test /home/Downloads/seq05-img-left/image_%08d_0.png /home/Downloads/seq05-img-right/image_%08d_1.png It throws error **
imread failed** Wonder does it support other image format other than .pgm? I am on Ubuntu 16.04.
The Readme says that
to execute sample. but there is no stereo_movie file? Instead a stereosgm_movie .cpp. So How should I do? Sorry, I'm new to cmake. I can't figure out how to make them function.