waifu2x-ios icon indicating copy to clipboard operation
waifu2x-ios copied to clipboard

[Request] Custom ESRGAN models

Open BuyMyMojo opened this issue 3 years ago • 5 comments

An option to choose a custom .pth model file for ESRGAN would be helpful, like being able to use the general Siax model or NMKD’s Jaywreck3 models.

Large collection of models: https://upscale.wiki/wiki/Model_Database

BuyMyMojo avatar Aug 06 '22 05:08 BuyMyMojo

This is already on my radar. Probably supporting custom Core ML models makes more sense because it can support ANE which runs way faster than GPU with only slight sacrifice in quality.

imxieyi avatar Aug 06 '22 05:08 imxieyi

I don't have any experince with Core ML, will transitioning those odels be relatively simple or will we need entire new models?

BuyMyMojo avatar Aug 06 '22 07:08 BuyMyMojo

Converting PyTorch (.pth) models to Core ML is relatively simple using coremltools. It requires basic understanding of ML frameworks though.

imxieyi avatar Aug 06 '22 07:08 imxieyi

Great, whenever the custom model support drops I'll start trying to convert some! Thanks a bunch

BuyMyMojo avatar Aug 06 '22 07:08 BuyMyMojo

Just gonna link the example documentation page here for anyone else that will look here: https://coremltools.readme.io/docs/pytorch-conversion

BuyMyMojo avatar Aug 06 '22 08:08 BuyMyMojo

The update to add custom models support is almost done, as well as a conversion script that supports most models from upscale.wiki. Would you like to help with beta testing?

If so please send your Apple ID to [email protected] so that I can add you to a TestFlight beta version. Thanks in advance.

imxieyi avatar Feb 19 '23 11:02 imxieyi

Yes I would love to :)

BuyMyMojo avatar Feb 19 '23 11:02 BuyMyMojo

Close as the custom models feature has been released now.

imxieyi avatar Mar 04 '23 12:03 imxieyi

Close as the custom models feature has been released now.

imxieyi avatar Mar 04 '23 12:03 imxieyi