-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Torch failed to build (How to install waifu2x in ubuntu 16.04 tutorial for dummies) #222
Comments
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. Regards 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. |
@magiruuvelvet Ok, sorry for the post. |
You can solve this error with the following steps.
It is a known issue of Torch with CUDA 9.x. torch/cutorch#797 |
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:
|
You do not need to downgrade CUDA. By the above steps, it can be worked with CUDA 9.1. If you want to run waifu2x outside the folder, specify the |
@nagadomi Ah, I see. Thank you. Now it actually works, thank you for the patience. |
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. |
@nagadomi Yeah I know, but there is no point in conding a separate script for the context menu that can do batch where funny enough the ones I already provided do the trick anyway. I did use the batch script myself and was nice. |
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:
|
@tommay Ah ok then. You are right cuda9 will end up being installed if you have it in the repos. Also I didn't have the symlinks there but sure why not, try to force them. I also hope my scripts will help you as well. |
well done! 解决了这个问题 |
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 ;(
Obviously after this point I really don't know what to do honestly. Any suggestions? Can I use waifu2x with only Cuda?
The text was updated successfully, but these errors were encountered: