Skip to content
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

Doesn't work properly under wsl2 #354

Closed
CarbonPool opened this issue Aug 21, 2020 · 5 comments
Closed

Doesn't work properly under wsl2 #354

CarbonPool opened this issue Aug 21, 2020 · 5 comments

Comments

@CarbonPool
Copy link

wsl_test
I am not sure whether cuda can work normally under wsl2. I should have completed the necessary dependency compilation. This is some error message: Failed to load CUDA modules. Please check the CUDA Settings.

@CarbonPool
Copy link
Author

Add some additional information:
os: windows10 insider preview 20190
gpu: rtx 2070super
gpu driver: 455.41

wsl2: ubuntu 18.04
cuda: cuda-toolkit-10-2

@nagadomi
Copy link
Owner

nagadomi commented Aug 22, 2020

I do not have Windows CUDA available. So I can't test it.

module 'cutorch' not found

Maybe when you build distro, CUDA cannot be detected and the library for CUDA is not built.
This may help. nagadomi/distro#9 (comment)

@CarbonPool
Copy link
Author

Thank you, I solved this problem, but I encountered another difficulty, this is the error message:
/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/trepl/init.lua:389: /root/torch/install/share/lua/5.1/trepl/init.lua :389: module'graphicsmagick.Image' not found:No LuaRocks module found for graphicsmagick.Image
no field package.preload['graphicsmagick.Image']
no file'lib/graphicsmagick/Image.lua'
no file'/root/.luarocks/share/lua/5.1/graphicsmagick/Image.lua'
no file'/root/.luarocks/share/lua/5.1/graphicsmagick/Image/init.lua'
no file'/root/torch/install/share/lua/5.1/graphicsmagick/Image.lua'
no file'/root/torch/install/share/lua/5.1/graphicsmagick/Image/init.lua'
no file'./graphicsmagick/Image.lua'
no file'/root/torch/install/share/luajit-2.1.0-beta1/graphicsmagick/Image.lua'
no file'/usr/local/share/lua/5.1/graphicsmagick/Image.lua'
no file'/usr/local/share/lua/5.1/graphicsmagick/Image/init.lua'
no file'/root/.luarocks/lib/lua/5.1/graphicsmagick/Image.so'
no file'/root/torch/install/lib/lua/5.1/graphicsmagick/Image.so'
no file'/root/torch/install/lib/graphicsmagick/Image.so'
no file'./graphicsmagick/Image.so'
no file'/usr/local/lib/lua/5.1/graphicsmagick/Image.so'
no file'/usr/local/lib/lua/5.1/loadall.so'
no file'/root/.luarocks/lib/lua/5.1/graphicsmagick.so'
no file'/root/torch/install/lib/lua/5.1/graphicsmagick.so'
no file'/root/torch/install/lib/graphicsmagick.so'
no file'./graphicsmagick.so'
no file'/usr/local/lib/lua/5.1/graphicsmagick.so'
no file'/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function'error'
/root/torch/install/share/lua/5.1/trepl/init.lua:389: in function'require'
waifu2x.lua:6: in main chunk
[C]: in function'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x556b2157d570

@CarbonPool
Copy link
Author

CarbonPool commented Aug 22, 2020

I made it! After completing the correct cuda configuration, clean up the failed luarocks cache, and then initialize and install the lua dependency module of waifu2x, and execute it in the waifu2x directory:
rm -rf ~/.cache/luarocks/
./install_lua_modules.sh

Training the waifu2 model on Windows Subsystem for Linux 2 is a good solution

@nagadomi
Copy link
Owner

Thank you for reporting.
I didn't expect waifu2x to work with WSL2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants