Closed journey-ad closed 7 years ago
Sometimes i got this:
/home/jad/torch/install/bin/luajit: /home/jad/torch/install/share/lua/5.1/nn/Container.lua:67:
In 1 module of nn.Sequential:
/home/jad/torch/install/share/lua/5.1/nn/THNN.lua:109: Wrong number of input channels! Input has 4 channels, expected 1 at /tmp/luarocks_nn-scm-1-1410/nn/lib/THNN/generic/SpatialConvolutionMM.c:99
stack traceback:
[C]: in function 'v'
/home/jad/torch/install/share/lua/5.1/nn/THNN.lua:109: in function 'SpatialConvolutionMM_updateOutput'
...ad/torch/install/share/lua/5.1/nn/SpatialConvolution.lua:96: in function <...ad/torch/install/share/lua/5.1/nn/SpatialConvolution.lua:92>
[C]: in function 'xpcall'
/home/jad/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
/home/jad/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'func'
/home/jad/torch/install/share/lua/5.1/nngraph/gmodule.lua:345: in function 'neteval'
/home/jad/torch/install/share/lua/5.1/nngraph/gmodule.lua:380: in function 'forward'
colorize.lua:47: in main chunk
[C]: in function 'dofile'
.../jad/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00405d50
WARNING: If you see a stack trace below, it doesn't point to the place where this error occurred. Please use only the one above.
stack traceback:
[C]: in function 'error'
/home/jad/torch/install/share/lua/5.1/nn/Container.lua:67: in function 'rethrowErrors'
/home/jad/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'func'
/home/jad/torch/install/share/lua/5.1/nngraph/gmodule.lua:345: in function 'neteval'
/home/jad/torch/install/share/lua/5.1/nngraph/gmodule.lua:380: in function 'forward'
colorize.lua:47: in main chunk
[C]: in function 'dofile'
.../jad/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00405d50
Hi,
@journey-ad I also have the same problem. the same output image without any errors. Did you figure it out what the problem is?
Ubuntu 16.04 Cuda 8.0 RAM 4 GB
Two possible reasons.
luarocks install image
to update it.Your have an issue with your torch installation. Follow the advice given by @Lyken17 and/or check the official torch documentation. Closing.
I running the example command but I got this:(without error) I have 8GiB RAM and Ubuntu16.04 CUDA7.5
我按照示例的指令运行后却得到了这样的结果:(没有报错) 我的内存容量为8GiB,系统是Ubuntu16.04,CUDA版本为7.5