Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to convert fintuned RealESRGAN_x4plus pytorch pth file into ncnn-vulkan weight file #51

Open
dumppool opened this issue Jul 31, 2023 · 2 comments

Comments

@dumppool
Copy link

How to config *.param file and convert fintuned RealESRGAN_x4plus model file into bin file,so that the Real-ESRGAN-ncnn-vulkan can use customized model file.

@HongYue1
Copy link

There is pth2ncnn.exe in cubscale but sadly it's not working anymore, I have been searching for an already converted models, but no luck.

@Baschbox
Copy link

Baschbox commented Oct 17, 2023

I use cupscale for that, just throw the .pth in it and try to upscale something and it will throw a error message.
Ignore that and go to cupscale Data -> Models. The .bin and .param will be there.
It doesnt work with any models, but most of the time it does.
I dont know why, i dont have the know how provided to answer that, but it does the job.
But i use the "Cupscale - updated - cpuonly FORK" not the original one.

E: Found a guide to convert .pth into ncnn compatible files using chainner:
https://github.com/upscayl/upscayl/wiki/%F0%9F%96%A5%EF%B8%8F-Model-Conversion-%E2%80%90-Create-more-AI-models!
Should work according to a few users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants