Real-ESRGAN-ncnn-vulkan icon indicating copy to clipboard operation
Real-ESRGAN-ncnn-vulkan copied to clipboard

Param failed?

Open dillfrescott opened this issue 2 years ago • 10 comments

_wfopen C:\Users\micro\Downloads\models/RealESRGANv2-animevideo-xsx4.pth.param failed is the error I keep getting...

dillfrescott avatar Mar 27 '22 00:03 dillfrescott

_wfopen C:\Users\micro\Downloads\models/RealESRGANv2-animevideo-xsx4.pth.param failed is the error I keep getting...

I keep getting this error in windows 10

42531ljm avatar May 20 '22 07:05 42531ljm

_wfopen C:\Users\micro\Downloads\models/RealESRGANv2-animevideo-xsx4.pth.param failed is the error I keep getting...

I keep getting this error in windows 10

I am on 11 btw. So its happening on both versions.

dillfrescott avatar May 20 '22 08:05 dillfrescott

_wfopen C:\Users\micro\Downloads\models/RealESRGANv2-animevideo-xsx4.pth.param failed is the error I keep getting...

I keep getting this error in windows 10

I am on 11 btw. So its happening on both versions.

I already figure out the problem, just use the portable version of real-esrgan which works fine. If you download the zip file version from the github release, you actually will lack some files for it to perform normal.

42531ljm avatar May 20 '22 13:05 42531ljm

_wfopen C:\Users\micro\Downloads\models/RealESRGANv2-animevideo-xsx4.pth.param failed is the error I keep getting...

I keep getting this error in windows 10

I am on 11 btw. So its happening on both versions.

You would probably find waifu2x-extention-gui useful, which is free and provides all sort of image\video enlarging method including real-esrgan with a fine tune graphic UI. I am here just to learn more.

42531ljm avatar May 20 '22 13:05 42531ljm

You need to add RealESRGANv2-animevideo-xsx4.pth.param to the folder named models.

dotmet avatar Jan 07 '23 02:01 dotmet

You need to add RealESRGANv2-animevideo-xsx4.pth.param to the folder named models.

But where to get it? https://github.com/xinntao/Real-ESRGAN readme has some mention of model files and some links. But those are .pth files. Renaming extension to .param doesn't do the trick either. Now requires some .bin file

./realesrgan-ncnn-vulkan.exe -v -i picture.jpg -s 4 -f webp -n realesrgan_x4plus -o picture_4.webp
[0 NVIDIA GeForce RTX 3070 Ti]  queueC=2[8]  queueG=0[16]  queueT=1[2]
[0 NVIDIA GeForce RTX 3070 Ti]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
[0 NVIDIA GeForce RTX 3070 Ti]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 3070 Ti]  subgroup=32  basic=1  vote=1  ballot=1  shuffle=1
parse magic failed
_wfopen realesrgan-ncnn-vulkan-v0.2.0-windows\models/realesrgan_x4plus.bin failed
network graph not ready

regs01 avatar Jan 20 '23 11:01 regs01

You need to add RealESRGANv2-animevideo-xsx4.pth.param to the folder named models.

But where to get it? https://github.com/xinntao/Real-ESRGAN readme has some mention of model files and some links. But those are .pth files. Renaming extension to .param doesn't do the trick either. Now requires some .bin file

./realesrgan-ncnn-vulkan.exe -v -i picture.jpg -s 4 -f webp -n realesrgan_x4plus -o picture_4.webp
[0 NVIDIA GeForce RTX 3070 Ti]  queueC=2[8]  queueG=0[16]  queueT=1[2]
[0 NVIDIA GeForce RTX 3070 Ti]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
[0 NVIDIA GeForce RTX 3070 Ti]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 3070 Ti]  subgroup=32  basic=1  vote=1  ballot=1  shuffle=1
parse magic failed
_wfopen realesrgan-ncnn-vulkan-v0.2.0-windows\models/realesrgan_x4plus.bin failed
network graph not ready

Download the portable release from this link ,find in page and you will see it ,its complete but a little old, https://github.com/xinntao/Real-ESRGAN

42531ljm avatar Jan 20 '23 13:01 42531ljm

You need to add RealESRGANv2-animevideo-xsx4.pth.param to the folder named models.

But where to get it? https://github.com/xinntao/Real-ESRGAN readme has some mention of model files and some links. But those are .pth files. Renaming extension to .param doesn't do the trick either. Now requires some .bin file

./realesrgan-ncnn-vulkan.exe -v -i picture.jpg -s 4 -f webp -n realesrgan_x4plus -o picture_4.webp
[0 NVIDIA GeForce RTX 3070 Ti]  queueC=2[8]  queueG=0[16]  queueT=1[2]
[0 NVIDIA GeForce RTX 3070 Ti]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
[0 NVIDIA GeForce RTX 3070 Ti]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 3070 Ti]  subgroup=32  basic=1  vote=1  ballot=1  shuffle=1
parse magic failed
_wfopen realesrgan-ncnn-vulkan-v0.2.0-windows\models/realesrgan_x4plus.bin failed
network graph not ready

Download the portable release from this link ,find in page and you will see it ,its complete but a little old, https://github.com/xinntao/Real-ESRGAN

how to add more models in the portable version?

tamal777 avatar Jan 23 '23 19:01 tamal777

You need to add RealESRGANv2-animevideo-xsx4.pth.param to the folder named models.

But where to get it? https://github.com/xinntao/Real-ESRGAN readme has some mention of model files and some links. But those are .pth files. Renaming extension to .param doesn't do the trick either. Now requires some .bin file

./realesrgan-ncnn-vulkan.exe -v -i picture.jpg -s 4 -f webp -n realesrgan_x4plus -o picture_4.webp
[0 NVIDIA GeForce RTX 3070 Ti]  queueC=2[8]  queueG=0[16]  queueT=1[2]
[0 NVIDIA GeForce RTX 3070 Ti]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
[0 NVIDIA GeForce RTX 3070 Ti]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 3070 Ti]  subgroup=32  basic=1  vote=1  ballot=1  shuffle=1
parse magic failed
_wfopen realesrgan-ncnn-vulkan-v0.2.0-windows\models/realesrgan_x4plus.bin failed
network graph not ready

You can convert parameters by yourself (see this issue), but I recommend you to use Waifu2x-Extension-GUI. Downloading the latest realsease, then you can find the files you want (*.params and *.bin) in this folder: waifu2x-extension-gui\realesrgan-ncnn-vulkan\models\ .

dotmet avatar Jan 25 '23 06:01 dotmet

https://pan.baidu.com/s/18n71xRPZL7uRcnlwSnWrdQ?pwd=iznh#list/path=%2F&parentPath=%2Fsharelink2054992973-689334925225862 这个百度网盘里有.param文件。 我运行下面的代码成功了: realesrgan-ncnn-vulkan.exe -i image1.png -o 1output.png -n realesrgan-x4plus

JudyHUST avatar May 12 '24 06:05 JudyHUST