jzbontar / mc-cnn

Stereo Matching by Training a Convolutional Neural Network to Compare Image Patches
BSD 2-Clause "Simplified" License
707 stars 232 forks source link

Stereo_predict function issue #8

Closed xiao1228 closed 7 years ago

xiao1228 commented 7 years ago

Hi I run into an issue with the stereo_predict function which is from local outlier = torch.CudaTensor():resizeAs(disp[2]):zero() when I use the kitti2015 dataset.

The output is this

bad argument #1 to 'resizeAs' (torch.CudaTensor expected, got torch.CudaLongTensor)

Does anyone know what is the problem? Thank you in advance!

jzbontar commented 7 years ago

Hi, I can't seem to reproduce the bug. What was the command that you ran?

xiao1228 commented 7 years ago

Hi @jzbontar I clone the code again and run again, the problem disappeared. Thank you