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

Read 0 blocks instead of 1 #51

Open KevinJune opened 6 years ago

KevinJune commented 6 years ago

I'm trying to run this command:

./main.lua kitti fast -a predict -net_fname net/net_kittifast-a_train_all.t7 -left samples/input/kittiL.png -right samples/input/kittiR.png -disp_max 70

And, I'm getting this error message:

kitti fast -a predict -net_fname net/net_kittifast-a_train_all.t7 -left samples/input/kittiL.png -right samples/input/kittiR.png -disp_max 70 Found Environment variable CUDNN_PATH = /usr/local/cuda/lib64/libcudnn.so.5luajit: /home/june/torch/install/share/lua/5.1/torch/File.lua:259: read error: read 0 blocks instead of 1 at /home/june/torch/pkg/torch/lib/TH/THDiskFile.c:352 stack traceback: [C]: in function 'readInt' /home/june/torch/install/share/lua/5.1/torch/File.lua:259: in function 'readObject' /home/june/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load' ./main.lua:898: in main chunk [C]: at 0x00405d50

I already try to reinstall torch

KevinJune commented 6 years ago

I'm not passing it the model correctly. It expects exact path to it, not just the folder that holds it. Sometimes maybe miss some files or type a wrong name for the files

CarolLi commented 5 years ago

I'm not passing it the model correctly. It expects exact path to it, not just the folder that holds it. Sometimes maybe miss some files or type a wrong name for the files

Hi, I have the same issue, could you tell me how can you solve it? Btw, my path to file is already an absolute path.