jcjohnson / neural-style

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

" th neural_style.lua " command gives error, No LuaRocks module found for cutorch #320

Open Henry-Yan-HS opened 8 years ago

Henry-Yan-HS commented 8 years ago

I installed torch and loadcaffe, and ran the following in the neural-style-master:

th neural_style.lua -style_image examples/inputs/picasso_selfport1907.jpg -content_image examples/inputs/brad_pitt.jpg

it gives error:

screen shot 2016-09-07 at 16 38 53

and i have the neural_style.lua in the folder:

screen shot 2016-09-07 at 16 34 01

Please help, thanks so much! 👍 👍 💯

besirkurtulmus commented 8 years ago

The error is really obvious in this case. You need to install cutorch. Just run the following command:

luarocks install cutorch
SamCabV commented 8 years ago

When I do the luarocks install cutorch code I get this error screenshot from 2016-09-08 08 38 11

rayset commented 8 years ago

it seems you have a old version of cuda, upgrade it to 6.5+