satoshiiizuka / siggraph2016_colorization

Code for the paper 'Let there be Color!: Joint End-to-end Learning of Global and Local Image Priors for Automatic Image Colorization with Simultaneous Classification'.
http://hi.cs.waseda.ac.jp/~iizuka/projects/colorization/
Other
2.16k stars 302 forks source link

out image file blurred #13

Closed journey-ad closed 7 years ago

journey-ad commented 8 years ago

I running the example command but I got this:(without error) out I have 8GiB RAM and Ubuntu16.04 CUDA7.5

我按照示例的指令运行后却得到了这样的结果:(没有报错) out 我的内存容量为8GiB,系统是Ubuntu16.04,CUDA版本为7.5

journey-ad commented 8 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
arasharchor commented 8 years ago

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

Lyken17 commented 7 years ago

Two possible reasons.

  1. Your 'image' package is outdated, use luarocks install image to update it.
  2. In your log, one line said "Input has 4 channels", i guess it is not standard RGB image. Convert it and then test.
bobbens commented 7 years ago

Your have an issue with your torch installation. Follow the advice given by @Lyken17 and/or check the official torch documentation. Closing.