Join GitHub today
Torch failed to build (How to install waifu2x in ubuntu 16.04 tutorial for dummies) #222
EDIT: Please check at the bottom for the tutorial.
So I am running KDE Neon 5.12, and I really want to install this program.
These are the steps I followed:
Cuda went pretty nicely. I also went ahead and installed the update too. I have a GeForce GTX 1050 Ti and it does support Cuda. I also made sure everything was there by following the instructions on the cuda page.
Now I tried torch.
Yeah so install.sh fails to build. Firstly I am missing many libs:
But it always fails here:
I tried to ./clean.sh then I tried again with no luck.
I also tried this:
It doesn't work ;(
This is not a waifu2x issue. Please report this to the torch developers.
Btw, from my experience w2x doesn't work with CUDA 9. Please downgrade to CUDA 8.0.61.
EDIT: Also if you want to use cudnn in w2x, the latest version which seems to work (at least for me) is 5.1.10.
I managed to get it going after a while. I removed everything, including cuda. I installed cuda 8-61. Then I did this:
Then I did manage to get thorch to install.
I installed the luarocks things, tho as sudo because I couldn't in any other way. Then I used chown -R to give myself ownership of the dir.
cd into waifu2x and trying
Also using the command outside the folder gives an error because file was not found. Trying to do something like this also gives me an error:
How to install waifu2x in ubuntu 16.04 - for dummies:
+You will have problems with gcc, fix found here. So do this
So in essence use chown to give yourself rights to the folder recursively.
Now test it:
Yep, you are set now.
How to make it easier to use waifu2x
Change the waifu directory to where you have it.
waifu2x.lua supports batch conversion.
Nice! I'd failed six ways from Sunday to get waifu2x running on an EC2 g2,2xlarge instance running Ubuntu 16.04. Now I've got it up and running with your guide. Thank you!
But I found it necessary to make two small tweaks: