jcjohnson / neural-style

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

Having issues with ubuntu. #293

Open HailHappyTimes opened 8 years ago

HailHappyTimes commented 8 years ago

I followed the instructions exactly as given at https://github.com/jcjohnson/neural-style/blob/master/INSTALL.md

However, when I get to running neural-style by typing in "th neural_style.lua -gpu -1 -print_iter 1", I get "th: command not found". Anybody know what's going on here and how to fix it? Thanks.

htoyryla commented 8 years ago

Most likely your installation either failed to add a line to .bashrc to add torch to the path (there should be an error message about it but it is easily missed among all that output.

Another possiblity is that .bashrc got updated but you didn't run

source ~/.bashrc

x8BitRain commented 8 years ago

I had the same error on Mint but it seems taking ownership of /usr/local/lib/luarocks and reinstalling may have fixed it, but I'm not certain that that is the fix.

Here's my install log: torch7-install-log.txt

HailHappyTimes commented 8 years ago

How would I go about doing that? I'm not sure how to uninstall. I'm kindof new to all of this.