Load torch model fail

When I try to load the stereo matching model https://github.com/jzbontar/mc-cnn. I receive such error:


I think that error may be on account of the coding.
I notice in the torch code, there is load(“path to model”, “ascii”).
Could this be the reason? And is there any resolution?

edit: sorry, misread the post. Could you provide a script that shows what you’re attempting to do?

Oh, I have solved this problem. This problem is certainly because of the coding. The t7 file is encoded in ascii, differing from the load_lua decoder. Just load the t7 file in torch and save it again with default encoder, the problem has been solved.