But it reports error like this:
/home/torch/install/bin/luajit: ./spynet.lua:136: bad argument #1 to 'copy' (sizes do not match at /home/torch/extra/cutorch/lib/THC/THCTensorCopy.cu:31)
stack traceback:
[C]: in function 'copy'
./spynet.lua:136: in function 'computeInitFlowL2'
./spynet.lua:147: in function 'computeInitFlowL3'
./spynet.lua:160: in function 'computeInitFlowL4'
./spynet.lua:173: in function 'computeInitFlowL5'
./spynet.lua:187: in function 'computeFlow'
opt_zs.lua:13: in main chunk
[C]: in function 'dofile'
...time/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
I want to compute flow according to github, my code looks like this:
But it reports error like this: /home/torch/install/bin/luajit: ./spynet.lua:136: bad argument #1 to 'copy' (sizes do not match at /home/torch/extra/cutorch/lib/THC/THCTensorCopy.cu:31) stack traceback: [C]: in function 'copy' ./spynet.lua:136: in function 'computeInitFlowL2' ./spynet.lua:147: in function 'computeInitFlowL3' ./spynet.lua:160: in function 'computeInitFlowL4' ./spynet.lua:173: in function 'computeInitFlowL5' ./spynet.lua:187: in function 'computeFlow' opt_zs.lua:13: in main chunk [C]: in function 'dofile' ...time/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x00405d50