aboutsummaryrefslogtreecommitdiffstats
path: root/modules/realesrgan_model.py
Commit message (Collapse)AuthorAgeFilesLines
* load_spandrel_model: make `half` `prefer_half`Aarni Koskela2024-01-021-1/+1
| | | | | 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.
* Be more clear about Spandrel model nomenclatureAarni Koskela2023-12-301-2/+2
|
* Correct RealESRGAN expected architecture type to ESRGANAarni Koskela2023-12-301-1/+1
|
* Verify architecture for loaded Spandrel modelsAarni Koskela2023-12-301-3/+4
|
* Use Spandrel for upscaling and face restoration architectures (aside from ↵Aarni Koskela2023-12-301-91/+62
| | | | GFPGAN and LDSR)
* tell RealESRGANer which device to run on, could be cuda, M1, or other GPUyajun2023-08-231-0/+1
|
* Upscaler.load_model: don't return None, just use exceptionsAarni Koskela2023-06-131-18/+15
|
* Move `load_file_from_url` to modelloaderAarni Koskela2023-06-131-2/+2
|
* rename print_error to report, use it with together with package nameAUTOMATIC2023-05-311-5/+5
|
* Add & use modules.errors.print_error where currently printing exception info ↵Aarni Koskela2023-05-291-9/+5
| | | | by hand
* change upscalers to download models into user-specified directory (from ↵AUTOMATIC2023-05-191-1/+1
| | | | commandline args) rather than the default models/<...>
* F401 fixes for ruffAUTOMATIC2023-05-101-3/+3
|
* autofixes from ruffAUTOMATIC2023-05-101-1/+1
|
* Fix up string formatting/concatenation to f-strings where feasibleAarni Koskela2023-05-091-4/+4
|
* fix `--realesrgan-models-path` not workinghitomi2023-04-041-2/+12
|
* Refactor conditional casting, fix upscalersbrkirch2023-01-281-1/+1
|
* Fix unable to find Real-ESRGAN model info error (AttributeError: 'NoneType' ↵AUTOMATIC2023-01-171-8/+4
| | | | object has no attribute 'data_path') #6841 #5170
* Removed duplicate definition model_pathMilly2022-10-091-2/+0
|
* remove unwanted formatting/functionality from the PRAUTOMATIC2022-09-301-8/+4
|
* Holy $hit.d8ahazard2022-09-291-102/+107
| | | | | | | | | | | | | | | | | 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.
* Re-implement universal model loadingd8ahazard2022-09-261-4/+19
|
* reworking #775AUTOMATIC2022-09-221-5/+50
|
* Basic settings for realesrgan model selection.d8ahazard2022-09-221-37/+5
| | | | I don't like that you have to restart the app, but it works.
* Fix/Revert opts name from GAN to ESRGANd8ahazard2022-09-221-2/+2
|
* Cleanup Importsd8ahazard2022-09-221-3/+1
|
* Typo Fixd8ahazard2022-09-221-1/+1
|
* Add new models, fix shared opts issuesd8ahazard2022-09-221-6/+27
| | | | | | 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...
* Revert "fix for swininr PR breaking ESRGAN for new users"AUTOMATIC2022-09-211-1/+1
| | | | This reverts commit 8d1d64f9a238272d7a166d21e25cf529c09b2ad5.
* fix for swininr PR breaking ESRGAN for new usersAUTOMATIC2022-09-211-1/+1
|
* honor tiling settings for RealESRGAN alsoAUTOMATIC2022-09-081-2/+4
| | | | load scripts earlier to get errors before model loads
* ESRGAN supportAUTOMATIC2022-09-041-0/+15
|
* split codebase into multiple files; to anyone this affects negatively: sorryAUTOMATIC2022-09-031-0/+70