karpathy / neuraltalk2

Efficient Image Captioning code in Torch, runs on GPU
5.49k stars 1.26k forks source link

module 'loadcaffe' not found:No LuaRocks module found for loadcaffe #180

Open ghost opened 7 years ago

ghost commented 7 years ago

when i run this th eval.lua -model /path/to/model -photos /path/to/image/directory -num_images 10 -gpuid -1 the result like this and i don't know where is the problem /home/tam_g/torch/install/bin/luajit: /home/tam_g/torch/install/share/lua/5.1/trepl/init.lua:389: module 'loadcaffe' not found:No LuaRocks module found for loadcaffe no field package.preload['loadcaffe'] no file '/home/tam_g/.luarocks/share/lua/5.1/loadcaffe.lua' no file '/home/tam_g/.luarocks/share/lua/5.1/loadcaffe/init.lua' no file '/home/tam_g/torch/install/share/lua/5.1/loadcaffe.lua' no file '/home/tam_g/torch/install/share/lua/5.1/loadcaffe/init.lua' no file './loadcaffe.lua' no file '/home/tam_g/torch/install/share/luajit-2.1.0-beta1/loadcaffe.lua' no file '/usr/local/share/lua/5.1/loadcaffe.lua' no file '/usr/local/share/lua/5.1/loadcaffe/init.lua' no file '/home/tam_g/.luarocks/lib/lua/5.1/loadcaffe.so' no file '/home/tam_g/torch/install/lib/lua/5.1/loadcaffe.so' no file '/home/tam_g/torch/install/lib/loadcaffe.so' no file './loadcaffe.so' no file '/usr/local/lib/lua/5.1/loadcaffe.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'error' /home/tam_g/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require' eval.lua:5: in main chunk [C]: in function 'dofile' ...am_g/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x00406670

nguyenhuyanhh commented 7 years ago

You need to install loadcaffe following this instruction

mrgloom commented 4 years ago
sudo luarocks install loadcaffe

Error: No results matching query were found.