waifu2x-ncnn-vulkan icon indicating copy to clipboard operation
waifu2x-ncnn-vulkan copied to clipboard

-model-path fails on linux

Open FruityWelsh opened this issue 5 years ago • 4 comments

I can successfully run the command with the base options no problem, just trying the -model-path option fails I use it's because the path /usr/bin/odel-path= doesn't actually exist. I installed via the AUR on manjaro

Command: waifu2x-ncnn-vulkan -model-path=models-upconv_7_anime_style_art_rgb -i ./Pictures/mycroft.png -o mycroft_2x.png

output:

[0 AMD RADV NAVI10 (LLVM 10.0.1)] queueC=1[4] queueG=0[1] queueT=0[1] [0 AMD RADV NAVI10 (LLVM 10.0.1)] bugsbn1=0 buglbia=0 bugcopc=0 bugihfa=0 [0 AMD RADV NAVI10 (LLVM 10.0.1)] fp16p=1 fp16s=1 fp16a=1 int8s=1 int8a=1 fopen /usr/bin/odel-path=models-upconv_7_anime_style_art_rgb/noise0_scale2.0x_model.param failed fopen /usr/bin/odel-path=models-upconv_7_anime_style_art_rgb/noise0_scale2.0x_model.bin failed find_blob_index_by_name Input1 failed find_blob_index_by_name Eltwise4 failed find_blob_index_by_name Input1 failed find_blob_index_by_name Eltwise4 failed find_blob_index_by_name Input1 failed find_blob_index_by_name Eltwise4 failed find_blob_index_by_name Input1 failed find_blob_index_by_name Eltwise4 failed find_blob_index_by_name Input1 failed find_blob_index_by_name Eltwise4 failed find_blob_index_by_name Input1 failed find_blob_index_by_name Eltwise4 failed find_blob_index_by_name Input1 failed find_blob_index_by_name Eltwise4 failed find_blob_index_by_name Input1 failed find_blob_index_by_name Eltwise4 failed find_blob_index_by_name Input1 failed find_blob_index_by_name Eltwise4 failed

System Specs:

Operating System: Manjaro Linux KDE Plasma Version: 5.20.80 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1 Kernel Version: 5.9.0-1-MANJARO OS Type: 64-bit Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor Memory: 15.6 GiB of RAM Graphics Processor: AMD Radeon RX 5700 XT

FruityWelsh avatar Oct 03 '20 01:10 FruityWelsh

Can confirm the issue but with models-upconv_7_photo model.

tannisroot avatar Oct 29 '20 23:10 tannisroot

To workaround it, you need to point to the actual path with models:

/usr/share/waifu2x-ncnn-vulkan/models-upconv_7_photo/

tannisroot avatar Oct 29 '20 23:10 tannisroot

To workaround it, you need to point to the actual path with models:

/usr/share/waifu2x-ncnn-vulkan/models-upconv_7_photo/

Is this because it's operating in the folder you call it in, not the folder the models are located in, and therefore can't find it in the folder without the full path?

Nova-Aurora avatar Jan 25 '21 06:01 Nova-Aurora

According to the error it looks for the model in the wrong system directory, so no I suppose?

fopen /usr/bin/odel-path=models-upconv_7_anime_style_art_rgb/noise0_scale2.0x_model.bin failed

tannisroot avatar Jan 25 '21 19:01 tannisroot