-
Notifications
You must be signed in to change notification settings - Fork 425
Add Support more esrgan models & x2 & x1 models #855
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
Conversation
A simple python script to convert an old type .pth:
convert_pth.py old_format.pth new_format_pth.pth
https://gist.github.com/fszontagh/4b1765d3ec75e1200f7a17ad8969da8b
Original image (512x768)
0ad0e5d9-7853-49d8-a5d9-3a00d333ef85_resized_512x768_refined_upscale_test_current_sd_normal
Upscaled image with the converted 4x_Nickelback_70000G.pth (2048x3072)
0ad0e5d9-7853-49d8-a5d9-3a00d333ef85_resized_512x768_refined_upscale_test
This is upscaled with RealESRGAN_x4plus.pth (which is worked earlier ) (2048x3072)
0ad0e5d9-7853-49d8-a5d9-3a00d333ef85_resized_512x768_refined
#865 can be used to test the upscaler models with external images.
Hi there, i have modified the ESRGAN code to support more models, i tested with a bunch from https://openmodeldb.info/ and some work out of the box but some of them had to be converted with :
I have also tested with x2 and x1 models from that web and some of them works ( 2x-ESRGAN.pth , 1x-Anti-Aliasing.pth )
It also supports RealESRGAN_x4plus.pth as well as the original RealESRGAN_x4plus_anime_6B.pth
PD: I'm integrating stable-diffusion.cpp into Nuke wich is a vfx software , my repo is here -> pc_nuke_diffusion, still early development but most of the cli options are avaliable there already.
esrgan_test