rzai@rzai00:~/prj/Im2Text$ CUDA_VISIBLE_DEVICES=1 th src/train.lua -phase train -gpu_id 1 -input_feed -model_dir model -image_dir data/images -data_path data/train.txt -val_data_path data/validate.txt -label_path data/labels.txt -vocab_file data/vocab.txt -batch_size 8 -beam_size 1 -max_num_tokens 150 -max_image_width 500 -max_image_height 160
OpenNMT not found. Please enter the path to OpenNMT:
/home/rzai/prj/OpenNMT
/home/rzai/torch/install/bin/luajit: /home/rzai/torch/install/share/lua/5.1/trepl/init.lua:389: /home/rzai/torch/install/share/lua/5.1/trepl/init.lua:389: module 'class' not found:No LuaRocks module found for class
no field package.preload['class']
no file '/home/rzai/.luarocks/share/lua/5.1/class.lua'
no file '/home/rzai/.luarocks/share/lua/5.1/class/init.lua'
no file '/home/rzai/torch/install/share/lua/5.1/class.lua'
no file '/home/rzai/torch/install/share/lua/5.1/class/init.lua'
no file './class.lua'
no file '/home/rzai/torch/install/share/luajit-2.1.0-beta1/class.lua'
no file '/usr/local/share/lua/5.1/class.lua'
no file '/usr/local/share/lua/5.1/class/init.lua'
no file '/home/rzai/prj/OpenNMT/class.lua'
no file '/home/rzai/.luarocks/lib/lua/5.1/class.so'
no file '/home/rzai/torch/install/lib/lua/5.1/class.so'
no file '/home/rzai/torch/install/lib/class.so'
no file './class.so'
no file '/usr/local/lib/lua/5.1/class.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/home/rzai/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
src/train.lua:23: in main chunk
[C]: in function 'dofile'
...rzai/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
rzai@rzai00:~/prj/Im2Text$
Suppose I had 'git pull' openNMT
rzai@rzai00:~/prj/Im2Text$ CUDA_VISIBLE_DEVICES=1 th src/train.lua -phase train -gpu_id 1 -input_feed -model_dir model -image_dir data/images -data_path data/train.txt -val_data_path data/validate.txt -label_path data/labels.txt -vocab_file data/vocab.txt -batch_size 8 -beam_size 1 -max_num_tokens 150 -max_image_width 500 -max_image_height 160 OpenNMT not found. Please enter the path to OpenNMT:
/home/rzai/prj/OpenNMT /home/rzai/torch/install/bin/luajit: /home/rzai/torch/install/share/lua/5.1/trepl/init.lua:389: /home/rzai/torch/install/share/lua/5.1/trepl/init.lua:389: module 'class' not found:No LuaRocks module found for class no field package.preload['class'] no file '/home/rzai/.luarocks/share/lua/5.1/class.lua' no file '/home/rzai/.luarocks/share/lua/5.1/class/init.lua' no file '/home/rzai/torch/install/share/lua/5.1/class.lua' no file '/home/rzai/torch/install/share/lua/5.1/class/init.lua' no file './class.lua' no file '/home/rzai/torch/install/share/luajit-2.1.0-beta1/class.lua' no file '/usr/local/share/lua/5.1/class.lua' no file '/usr/local/share/lua/5.1/class/init.lua' no file '/home/rzai/prj/OpenNMT/class.lua' no file '/home/rzai/.luarocks/lib/lua/5.1/class.so' no file '/home/rzai/torch/install/lib/lua/5.1/class.so' no file '/home/rzai/torch/install/lib/class.so' no file './class.so' no file '/usr/local/lib/lua/5.1/class.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'error' /home/rzai/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require' src/train.lua:23: in main chunk [C]: in function 'dofile' ...rzai/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 rzai@rzai00:~/prj/Im2Text$