aboutsummaryrefslogtreecommitdiff
path: root/modules/realesrgan_model.py
AgeCommit message (Collapse)Author
2024-01-02load_spandrel_model: make `half` `prefer_half`Aarni Koskela
As discussed with the Spandrel folks, it's good to heed Spandrel's "supports half precision" flag to avoid e.g. black blotches and what-not.
2023-12-31Be more clear about Spandrel model nomenclatureAarni Koskela
2023-12-30Correct RealESRGAN expected architecture type to ESRGANAarni Koskela
2023-12-30Verify architecture for loaded Spandrel modelsAarni Koskela
2023-12-30Use Spandrel for upscaling and face restoration architectures (aside from ↵Aarni Koskela
GFPGAN and LDSR)
2023-08-23tell RealESRGANer which device to run on, could be cuda, M1, or other GPUyajun
2023-06-13Upscaler.load_model: don't return None, just use exceptionsAarni Koskela
2023-06-13Move `load_file_from_url` to modelloaderAarni Koskela
2023-05-31rename print_error to report, use it with together with package nameAUTOMATIC
2023-05-29Add & use modules.errors.print_error where currently printing exception info ↵Aarni Koskela
by hand
2023-05-19change upscalers to download models into user-specified directory (from ↵AUTOMATIC
commandline args) rather than the default models/<...>
2023-05-10F401 fixes for ruffAUTOMATIC
2023-05-10autofixes from ruffAUTOMATIC
2023-05-09Fix up string formatting/concatenation to f-strings where feasibleAarni Koskela
2023-04-04fix `--realesrgan-models-path` not workinghitomi
2023-01-28Refactor conditional casting, fix upscalersbrkirch
2023-01-17 Fix unable to find Real-ESRGAN model info error (AttributeError: 'NoneType' ↵AUTOMATIC
object has no attribute 'data_path') #6841 #5170
2022-10-09Removed duplicate definition model_pathMilly
2022-09-30remove unwanted formatting/functionality from 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.
2022-09-26Re-implement universal model loadingd8ahazard
2022-09-22reworking #775AUTOMATIC
2022-09-22Basic settings for realesrgan model selection.d8ahazard
I don't like that you have to restart the app, but it works.
2022-09-22Fix/Revert opts name from GAN to ESRGANd8ahazard
2022-09-22Cleanup Importsd8ahazard
2022-09-22Typo Fixd8ahazard
2022-09-22Add new models, fix shared opts issuesd8ahazard
Add General x4x3, GeneralWDN x4x3, and AnimeVideo models from newer ESRGAN releases. Fix issues caused by renaming ESRGAN_tille values to GAN_tile without using an IDE...
2022-09-21Revert "fix for swininr PR breaking ESRGAN for new users"AUTOMATIC
This reverts commit 8d1d64f9a238272d7a166d21e25cf529c09b2ad5.
2022-09-21fix for swininr PR breaking ESRGAN for new usersAUTOMATIC
2022-09-08honor tiling settings for RealESRGAN alsoAUTOMATIC
load scripts earlier to get errors before model loads
2022-09-04ESRGAN supportAUTOMATIC
2022-09-03split codebase into multiple files; to anyone this affects negatively: sorryAUTOMATIC