aboutsummaryrefslogtreecommitdiff
path: root/modules/upscaler.py
AgeCommit message (Collapse)Author
2022-11-04fix upscale loop erroneously applied multiple timesAUTOMATIC
2022-10-30add resrgan 8x, allow use 1x and up to 8x extra models, move BSRGAN model, ↵victorca25
add nearest
2022-10-09fix logic error in #1832AUTOMATIC
2022-10-09Removed duplicate definition model_pathMilly
2022-09-30fix the bug with broken rescaling in PRAUTOMATIC
2022-09-30fix bugs in the PRAUTOMATIC
2022-09-29Holy $hit.d8ahazard
Yep. Fix gfpgan_model_arch requirement(s). Add Upscaler base class, move from images. Add a lot of methods to Upscaler. Re-work all the child upscalers to be proper classes. Add BSRGAN scaler. Add ldsr_model_arch class, removing the dependency for another repo that just uses regular latent-diffusion stuff. Add one universal method that will always find and load new upscaler models without having to add new "setup_model" calls. Still need to add command line params, but that could probably be automated. Add a "self.scale" property to all Upscalers so the scalers themselves can do "things" in response to the requested upscaling size. Ensure LDSR doesn't get stuck in a longer loop of "upscale/downscale/upscale" as we try to reach the target upscale size. Add typehints for IDE sanity. PEP-8 improvements. Moar.