amitshaked / resmatch

Implementation of "Improved Stereo Matching with Constant Highway Networks and Reflective Confidence Learning"
BSD 2-Clause "Simplified" License
75 stars 27 forks source link

Run submit mode for KITTI dataset #7

Open ComVisDinh opened 7 years ago

ComVisDinh commented 7 years ago

I am testing in submit mode using the pretrained data "data kitti2012_resmatch_fast.zip" I used the following command: th main.lua -ds kitti -a submit -m fast -mc resmatch -mcnet ../storage/net/mc/kitti_resmatch_fast_LL_rgb_all_net.t7 -dispnet ../storage/net/disparity/net_reflective_kitti_resmatch_fast_LL_rgb_all_net.t7

However, I got the error "C++ exception". Does I use the correct command? Thank you for your help.

fladdd commented 7 years ago

I came across the same problem, have u fixed it already?

amitshaked commented 7 years ago

Can you please give me more information? What C++ function throws the exception?

ComVisDinh commented 7 years ago

This error comes from "function Runner:submit(samples)" in file runnner.lua Specifically, it comes from the line code of this function: adcensus.writePNG16(pred_img, img.height, img.width, s) where 's' is the path for saving.

To solve the above problem, you simply take care of paths 's' for saving. You may need to change the code as follows (I assume the current path is in src folder): if self.dataset.name == 'kitti' then path = '../out' elseif self.dataset.name == 'kitti2015' then path = '../out/disp_0' end

and the last line of the function

os.execute('cd ../out; zip -r submission.zip .')

Best regards.

LUCASLLA commented 6 years ago

Hi, I would like to be able to test some images and have the disparity map of some of these, but there's nothing about it on the Readme file. Anyone knows how to generate them? Tks.