aboutsummaryrefslogtreecommitdiffstats
path: root/modules/modelloader.py
Commit message (Collapse)AuthorAgeFilesLines
* remove unwanted formatting/functionality from the PRAUTOMATIC2022-09-301-1/+8
|
* undo upscaler model filename tamperingAUTOMATIC2022-09-301-1/+0
|
* Fixes, cleanup.d8ahazard2022-09-301-14/+0
|
* Holy $hit.d8ahazard2022-09-291-20/+54
| | | | | | | | | | | | | | | | | 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.
* Remove debugging messaged8ahazard2022-09-271-1/+0
|
* Use model loader with stable-diffusion too.d8ahazard2022-09-271-7/+18
| | | | | | | | | | Hook the model loader into the SD_models file. Add default url/download if checkpoint is not found. Add matching stablediffusion-models-path argument. Add message that --ckpt-dir will be removed in the future, but have it pipe to stablediffusion-models-path for now. Update help strings for models-path args so they're more or less uniform. Move sd_model "setup" call to webUI with the others. Ensure "cleanup_models" method moves existing models to the new locations, including SD, and that we aren't deleting folders that still have stuff in them.
* Cleanup existing directories, fixesd8ahazard2022-09-261-0/+38
|
* Re-implement universal model loadingd8ahazard2022-09-261-0/+65