jcjohnson / neural-style

Torch implementation of neural style algorithm
MIT License
18.31k stars 2.7k forks source link

torch-cl Error #327

Open Sentim opened 7 years ago

Sentim commented 7 years ago

Hi, I've been trying to get this to work for a good couple hours—installed torch-cl according to all the directions multiple times, but whenever I try to run neural-style I get this result:

jones@Cypress-linux:~/neural-style$ th neural_style.lua -gpu -1 -print_iter 1 /home/jones/torch-cl/install/bin/luajit: /home/jones/torch-cl/install/share/lua/5.1/trepl/init.lua:384: ...e/jones/torch-cl/install/share/lua/5.1/loadcaffe/ffi.lua:10: /home/jones/torch-cl/install/lib/lua/5.1/libloadcaffe.so: undefined symbol: _ZNK6google8protobuf7Message11GetTypeNameEv stack traceback: [C]: in function 'error' /home/jones/torch-cl/install/share/lua/5.1/trepl/init.lua:384: in function 'require' neural_style.lua:6: in main chunk [C]: in function 'dofile' ...s/torch-cl/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00405e90

Anyone have any suggestions?

wmco commented 7 years ago

One common mistake is to use the system's luarocks to install loadcaffe. Try installing loadCaffe again, but pointing directly to the luarocks inside the Torch install directory.