xinntao / Real-ESRGAN-ncnn-vulkan

NCNN implementation of Real-ESRGAN. Real-ESRGAN aims at developing Practical Algorithms for General Image Restoration.
https://github.com/xinntao/Real-ESRGAN
Other
1.46k stars 182 forks source link

How to add new ncnn model to the program and execute in the command line #60

Open jamesjiang221 opened 8 months ago

jamesjiang221 commented 8 months ago

Hi, I have an onxx with x2 upscaled model converted to ncnn model with .param .bin, how do use this new model and execute in the command line? Dragging .param an .bin to "models" folder does not work when executing the model with its name after "-n", would it be any edits needed from the source code and recompile?

NeedsMoar commented 5 months ago

That will work if it's a compatible esrgan model, but a bunch of them aren't and need either this one specific branch of it that isn't available for ncnn or precompiled or potentially some other upscaler base program entirely if they were named wrong.