diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-12-03 18:06:33 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-12-03 18:06:33 +0300 |
commit | b6e5edd74657e3fd1fbd04f341b7a84625d4aa7a (patch) | |
tree | bac9ddea7cafb768e064b75281edcfeac3a52ca1 /webui.py | |
parent | 46b0d230e7c13e247eabb22e1103ce512e7ed6b1 (diff) |
add built-in extension system
add support for adding upscalers in extensions
move LDSR, ScuNET and SwinIR to built-in extensions
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -53,10 +53,11 @@ def initialize(): codeformer.setup_model(cmd_opts.codeformer_models_path)
gfpgan.setup_model(cmd_opts.gfpgan_models_path)
shared.face_restorers.append(modules.face_restoration.FaceRestoration())
- modelloader.load_upscalers()
modules.scripts.load_scripts()
+ modelloader.load_upscalers()
+
modules.sd_vae.refresh_vae_list()
modules.sd_models.load_model()
shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights()))
@@ -177,6 +178,8 @@ def webui(): print('Reloading custom scripts')
modules.scripts.reload_scripts()
+ modelloader.load_upscalers()
+
print('Reloading modules: modules.ui')
importlib.reload(modules.ui)
print('Refreshing Model List')
|