nihui / waifu2x-ncnn-vulkan

waifu2x converter ncnn version, runs fast on intel / amd / nvidia / apple-silicon GPU with vulkan
MIT License
2.99k stars 205 forks source link

How to excute in Linux? #147

Closed Excelsiorly closed 3 years ago

Excelsiorly commented 3 years ago

Hi, I've downloaded the Linux version:waifu2x-ncnn-vulkan-20210210-ubuntu.zip. But I didn't find out how to excute the file waifu2x-ncnn-vulkan. It will be nice of you to anwser. Thanks!

Nova-Aurora commented 3 years ago

Extract the zip file into a directory, then enter into a terminal, cd to the folder, and execute by running the command ./waifu2x-ncnn-vulkan [options]

Nova-Aurora commented 3 years ago

You may need to set waifu2x-ncnn-vulkan as executable in your file manager or though the terminal first

Excelsiorly commented 3 years ago

thanks, i can run it on cpu now. However, when i tried to run it with the commands ./waifu2x-ncnn-vulkan -i ./workspace/pj-01/src/test.jpg -o ./workspace/pj-01/out/test.jpg -n 1 -s 2 -j 4:4:4 -g 0 on the gpus, another error occured:

vkEnumeratePhysicalDevices failed -3
invalid gpu device

my gpu informations are as followed:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64       Driver Version: 440.64       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla V100-SXM2...  Off  | 00000000:1A:00.0 Off |                    0 |
| N/A   40C    P0    55W / 300W |   3945MiB / 32510MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  Tesla V100-SXM2...  Off  | 00000000:89:00.0 Off |                    0 |
| N/A   73C    P0   173W / 300W |   3740MiB / 32510MiB |     61%      Default |
+-------------------------------+----------------------+----------------------+

looking forward to your reply!

Provissy commented 3 years ago

Please try to use vulkaninfo to check your vulkan status.