nihui / waifu2x-ncnn-vulkan

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

model fails to open when scale set to 1 #132

Open wfscans opened 3 years ago

wfscans commented 3 years ago

On ubuntu 18.04 when running waifu2x-ncnn-vulkan -m /home/user/Src/waifu2x-ncnn-vulkan/models/models-upconv_7_anime_style_art_rgb -n 2 -s 1 -i 001.jpg -o 001.png the following output happens. When -s is set to 2 or left out(default 2) it works fine. Built from master c564778. Same happens with the pre-built version.

output from prebuilt

$ waifu2x-ncnn-vulkan -m models-upconv_7_anime_style_art_rgb  -n 2 -s 1 -i 001.jpg -o 001.png
[0 GeForce GTX 1660]  queueC=2[8]  queueG=0[16]  queueT=1[2]
[0 GeForce GTX 1660]  bugsbn1=0  bugcopc=0  bugihfa=0
[0 GeForce GTX 1660]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
[0 GeForce GTX 1660]  subgroup=32  basic=1  vote=1  ballot=1  shuffle=1
fopen /home/user/Src/waifu2x-ncnn-vulkan/build/w/waifu2x-ncnn-vulkan-20210102-ubuntu/models-upconv_7_anime_style_art_rgb/noise2_model.param failed
fopen /home/user/Src/waifu2x-ncnn-vulkan/build/w/waifu2x-ncnn-vulkan-20210102-ubuntu/models-upconv_7_anime_style_art_rgb/noise2_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
find_blob_index_by_name Input1 failed
find_blob_index_by_name Eltwise4 failed
ArchieMeng commented 3 years ago

It is because there is not a simply denoise upconv_7_anime_style_art_rgb model. (It is actually requesting noise2_model.bin and .param in your case)