batra-mlp-lab / visdial

[CVPR 2017] Torch code for Visual Dialog

Home Page:https://arxiv.org/abs/1611.08669

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in forwardbackward() function while training the data

hardik2396 opened this issue · comments

After setting up dependencies, on execution of th train.lua -encoder lf-ques -decoder gen -gpuid 0 error as shown in the snapshot below, is raised. I tried on the different PC configurations and the error still persists hence it is not a system specific problem.
image

I got the same error. I think the error occurs due to change in the module of rnn installed by LuaRocks. Recently, the previous module (https://github.com/Element-Research/rnn) has been deprecated and the new module (https://github.com/torch/rnn) is being used. Try to install the deprecated module and I guess this error will not occur.

Installation steps

git clone https://github.com/Element-Research/rnn.git
cd rnn
luarocks make rocks/rnn-scm-1.rockspec