DmitryUlyanov / texture_nets

Code for "Texture Networks: Feed-forward Synthesis of Textures and Stylized Images" paper.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

train wrong

huihuangzhao opened this issue · comments

HI, i faced a problem as follows

th train.lua -data dataset -style_image data/style/style1.jpg
/home/zhao/torch/install/bin/luajit: /home/zhao/torch/install/share/lua/5.1/threads/threads.lua:183: [thread 2 callback] bad argument #2 to '?' (dimension 1 out of range of 0D tensor at /home/zhao/torch/pkg/torch/generic/Tensor.c:19)
stack traceback:
[C]: at 0x7f29911898b0
[C]: in function 'xpcall'
/home/zhao/torch/install/share/lua/5.1/threads/threads.lua:234: in function 'callback'
/home/zhao/torch/install/share/lua/5.1/threads/queue.lua:65: in function </home/zhao/torch/install/share/lua/5.1/threads/queue.lua:41>
[C]: in function 'pcall'
/home/zhao/torch/install/share/lua/5.1/threads/queue.lua:40: in function 'dojob'
[string " local Queue = require 'threads.queue'..."]:13: in main chunk
stack traceback:
[C]: in function 'error'
/home/zhao/torch/install/share/lua/5.1/threads/threads.lua:183: in function 'dojob'
/home/zhao/torch/install/share/lua/5.1/threads/threads.lua:264: in function 'synchronize'
/home/zhao/torch/install/share/lua/5.1/threads/threads.lua:142: in function 'specific'
/home/zhao/torch/install/share/lua/5.1/threads/threads.lua:125: in function 'Threads'
./dataloader.lua:48: in function '__init'
/home/zhao/torch/install/share/lua/5.1/torch/init.lua:91: in function </home/zhao/torch/install/share/lua/5.1/torch/init.lua:87>
[C]: in function 'DataLoader'
./dataloader.lua:25: in function 'create'
train.lua:143: in main chunk
[C]: in function 'dofile'
...zhao/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

Could someone can help me to solve this ?

Many thanks.