nihui / waifu2x-ncnn-vulkan

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

AlmaLinux output-file not working? #185

Closed Daijobou closed 2 years ago

Daijobou commented 2 years ago

Hello, this is my first attempt to compile and scale a image with waifu2x-ncnn-vulkan and I hope someone can help me. I use AlmaLinux 8.6 WSL with Windows 11 (for tesing). The build from source working fine. I copied "waifu2x-ncnn-vulkan" to folder "/waifu2x-ncnn-vulkan/models" because he don't found the models.

./waifu2x-ncnn-vulkan -i origin.jpg -o output.png-n 2 -s 2 -g -1 vkEnumeratePhysicalDevices failed -3 fopen /mnt/c/Users/...../AlmaLinux/waifu2x-ncnn-vulkan/models-cunet/noise2_scale2.0x_model.param failed fopen /mnt/c/Users/...../AlmaLinux/waifu2x-ncnn-vulkan/models-cunet/noise2_scale2.0x_model.bin failed find_blob_index_by_name Input1 failed Try find_blob_index_by_name Eltwise4 failed Try Segmentation fault

"-g -1" because I want CPU based converting. After call from folder "models" I get a output.png image

./waifu2x-ncnn-vulkan -i origin.jpg -o output.png -n 2 -s 2 -g -1 vkEnumeratePhysicalDevices failed -3

Result is this: output

What is my mistake? Remove parameter -g change nothing.

Oh, solution was easy. I must add parameter "-m models-upconv_7_anime_style_art_rgb".